util-pusher-x
This pushes or concatenates into a new or existing array.
module.exports
⇒ (arrayLike, [from], [target])
⏏
This pushes or concatenates into a new or existing array.
Kind: Exported member
Param | Type | Description |
---|---|---|
arrayLike | ArrayLike |
The source. |
[from] | number |
The from source index. |
[target] | Array |
The target array. |
Example
; const x = 1 2 3;console; // [1, 2, 3, 5, 6]