Merge arrays in to the first array
$ npm install --save merge-array
var mergeArray = require('merge-array');
var arr = ['foo'];
mergeArray(arr, ['bar']);
console.log(arr);
//=> ['foo', 'bar']
mergeArray(arr, ['hello'], ['you']);
console.log(arr);
//=> ['foo', 'bar', 'hello', 'you']
Type: array
Array to merge in to.
Type: array
Array to merge in to the first array.
MIT © Andreas Gillström