@arr/lastindexof

A tiny, faster alternative to native Array.prototype.lastIndexOf


Keywords
arr, array, Array.lastIndexOf, Array.prototype.lastIndexOf, performance, native, lastIndexOf, array-methods, javascript, js, nodejs
License
MIT
Install
npm install @arr/lastindexof@0.1.0

Documentation

arr Build Status

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 npm 95 B 🚫 🚫
filter npm 101 B 🚫 🚫
filter.mutate npm 90 B
find npm 91 B 🔍 🔍
findIndex npm 94 B 🔍 🚫
flatten npm 151 B 〰️ 〰️ 〰️ 〰️ 〰️
forEach npm 73 B 🚫 🔍
includes npm 95 B 〰️ 🚫 🚫 🚫 🚫
map npm 122 B
reduce npm 137 B
reduceRight npm 130 B 🚫
reverse npm 136 B
some npm 94 B 🔍
unique npm 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