markmyoung / arrayaccumulate Goto Github PK
View Code? Open in Web Editor NEWBackwards-compatible replacements of `Array.prototype.reduce` and `Array.prototype.reduceRight` that treat its second parameter like `every`, `filter`, `find`, `findIndex`, `forEach`, `map`, and `some`.
License: GNU General Public License v3.0