Functional version of Array.prototype.concat
$ npm install @f/concat
var concat = require('@f/concat')
concat([1], [2] // -> [1, 2]
concat([1], 2) // -> [1, 2]
a
- Arrayb
- Array or scalar value to concat ontoa
Returns: A new array with b
tacked onto the end of a
.
MIT