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