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
MIT © Luke Edwards