Highland Array
Caution: this will pollute your native JS Array
.
Highland is a "high-level streams library for Node.js and the browser".
This is a Node.js module. This module extends the native JS Array
with the methods that work with Highland.
This can be also used in the browsers, but not tested.
The methods
shiftToStream()
It returns a Highland stream which once consumed, will shift items from the array. Example:
;// or `require('carcass')` if you have carcass installed. var theArray = 1 2 3 4;theArray; // optionally give it a callbackvar theArray = 1 2 3 4;theArray;