Package Exports
- nor-array
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nor-array) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nor-array
Optimized Array Utility Library
Installation
Install using NPM: npm install nor-array
forEach()
var ARR = require('nor-array');
var a = [1, 2, 3, 4];
ARR(a).forEach(function(v) {
console.log(v);
});Our implementation is about 50% faster than the standard
Array.prototype.forEach().
Compatibility with Array.prototype.forEach()
Our implementation is not compatible with ECMAScript
implementation of Array.prototype.forEach().
Most notably because it:
- Array is dense (NOT sparse) -- There must be no holes!
- Assumes that indexes are between zero (0) and
array.length:0 <= i < array.length - It does not support
thisArg, callo.callback.bind(o)instead - The array indexes do not change while our
forEach()is running
This assumption is the reason why it is faster.
License
The MIT style license, see LICENSE.
Commercial Support
You can buy commercial support from Sendanor.
