Returns a new array comprised of the given array's contents with the given value appended.
npm install array-concat --save
You can also use Duo, Bower or download the files manually.
Returns a new array comprised of the given array's contents with the given value appended. Pass an array as the second argument to append multiple values.
var concat = require('array-concat')
concat(['a', 'b'], ['c', 'd'])
//=> ['a', 'b', 'c', 'd']
var concat = require('array-concat')
var list = [['b'], ['c'], ['d']]
list.map(concat(['a']))
//=> [['a', 'b'], ['a', 'c'], ['a', 'd']]
list (array)
.value (any)
.
(array)
Returns an array comprised of the given array's contents with the given value(s) appended.
SEE: contributing.md