arr-map 
Faster, node.js focused alternative to JavaScript's native array map.
JavaScript's native Array.map()
is slow, and other popular array map libraries are focused on browser compatibility. This implementation is focused on node.js usage keeping it light and fast.
Install with npm
npm i arr-map --save
Usage
var map = require('arr-map');
map(['a', 'b', 'c'], function (ele) {
return ele + ele;
});
map(['a', 'b', 'c'], function (ele, i) {
return i + ele;
});
Run tests
Install dev dependencies:
node i -d && mocha
Run benchmarks
Install dev dependencies:
node i -d && npm benchmark
Benchmarks from January 30, 2015
arr-map.js x 19,418 ops/sec ±0.62% (98 runs sampled)
native.js x 8,312 ops/sec ±0.80% (98 runs sampled)
arr-map.js x 402,100 ops/sec ±0.72% (97 runs sampled)
native.js x 156,813 ops/sec ±1.74% (91 runs sampled)
arr-map.js x 1,445,561 ops/sec ±0.67% (97 runs sampled)
native.js x 480,518 ops/sec ±1.64% (86 runs sampled)
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 30, 2015.