0.0.1 • Published 9 years ago

array-prototype-cut_and_push v0.0.1

Weekly downloads
4
License
-
Repository
github
Last release
9 years ago

array-prototype-cutAndPush Build Status

A simple lightweight function for cut pice of array and push it to another array

Getting Started

Install the module with: npm install array-prototype-cutAndPush

require('array-prototype-cutAndPush');
var a = [1,2,3,4,5,6,7,8,9,10],
    b = [1,2,3,4,5,6,7,8,9,10];
a.cutAndPush(function(el) { return a > 5; }, b);

console.log(a); // [1,2,3,4,5]
console.log(b); // [1,2,3,4,5,6,7,8,9,10,6,7,8,9,10]

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

License

Copyright (c) 2015 Serhii Polishchuk
Licensed under the MIT license.