arr
A collection of tiny, highly performant
Array.prototype
alternatives and extra utilities.
All exports are offered as CommonJS and ES6 modules. Additionally, every entry is ES3 code, which means that each package is ready for & compatible with any Browser or Node version!
Please view each package's readme for Usage and important information!
β οΈ Note: Most functions have slight differences from the native built-ins!
To view extensive benchmark results, visit the Benchmarks section.
Package | Version | Minified | Node 4 | Node 6 | Node 7 | Node 8 | Node 10 | Node 12 |
---|---|---|---|---|---|---|---|---|
every |
95 B | |||||||
filter |
101 B | β | ||||||
filter.mutate |
90 B | |||||||
find |
91 B | π | ||||||
findIndex |
94 B | π | ||||||
flatten |
151 B | γ°οΈ | ||||||
forEach |
73 B | |||||||
includes |
95 B | π« | ||||||
map |
122 B | |||||||
reduce |
137 B | |||||||
reduceRight |
130 B | |||||||
reverse |
136 B | β | β | |||||
some |
94 B | |||||||
unique |
111 B | γ°οΈ | π |
β β Denotes function is faster than native
π« β Denotes function is not faster than native
π β Denotes function is sometimes faster than native
γ°οΈ β Denotes function has no native counterpart
License
MIT Β© Luke Edwards