npm install clone-array> Create a clone of an array.
``sh`
$ npm i clone-array --save-dev
`js
var a = ['a', 'b', 'c'];
var b = cloneArray(a);
a = a.concat('new');
console.log('a:', a);
//=> a: [ 'a', 'b', 'c', 'new' ]
console.log('b:', b);
//=> b: [ 'a', 'b', 'c' ]
`
* arr-diff: Returns an array with only the unique values from the first array, by excluding all… more | homepage
* array-intersection: Return an array with the unique values present in _all_ given arrays using strict equality… more | homepage
* array-union: Create an array of unique values, in order, from the input arrays | homepage
Install dev dependencies:
`sh``
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
Copyright © 2015 Jon Schlinkert
Released under the MIT license.
*
_This file was generated by verb-cli on August 23, 2015._