array-append-until
Add one element to the end of an array returning the new array without mutating source array.
npm install array-append-
You can also use Duo, Bower or download the files manually.
npm stats
API Example
Static
var appendUntil = //=> ['Z', 'Z']
Generator
var appendUntil = //=> [ 0, 5, 10 ]
API
appendUntil(element, predicate, list)
arguments
element (*|Function)
.predicate (Function)
.list (Array)
.
returns
(Array)
New array with element (or value returned from applyinglist
toelement
function) appended.
Alternatives
- N/A
Contributing
SEE: contributing.md