node-array
Extending the array object for Node.js, to provide more methods and features to operate array object.
Installation
Using NPM utility to install module directly:
npm install node-array
Documentation
node-array provided many easy-use methods for Array object.
### [Array Object].forEachAsync()
Asynchronous version of forEach() to avoid blocking by traversing array.
Example
var Array = ; var a = 1 2 3 4 5 ; a;
Simulate "break" statement of For-Loop:
var Array = ; var a = 1 2 3 4 5 ; a;
Simulate "continue" statement of For-Loop:
var Array = ; var a = 1 2 3 4 5 ; a;
### [Array Object].parallel()
Process all of items of array object in parallel.
Example
var Array = ; var a = ; // Prepare 1000 items for testingfor var i = 0; i < 1000; i++ a; // Make 50 workers to process all items of array in parallela;
In the Browser
node-array can be used in the browser:
License
Licensed under the MIT License
Authors
Copyright(c) 2012 Fred Chien <cfsghost@gmail.com>