a-union
Creates the union of the passed-in arrays
Install
$ npm install --save a-union
Examples
var union = ; //=> [1, 2, 3, 4, 11] //=> ['a', 'b', 'c', 'd']
While combining arrays the order of elemnets are remaied same as the arrays in argument. For example,
//=> [1, 2, 3, 4, 5, 6, 9, 8]
Usage
require('a-union')( *array )
Return union of the passed-in arrays, in-order.
Arguments:
*array
: sequence of arrays
Returns: Return a new array containing union of all the array elements passed.
License
© 2016 vikram. MIT License