1.0.3 • Published 5 years ago

util-pusher-x v1.0.3

Weekly downloads
3,521
License
MIT
Repository
github
Last release
5 years ago

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

ParamTypeDescription
arrayLikeArrayLikeThe source.
fromnumberThe from source index.
targetArrayThe target array.

Example

import pusher from 'util-pusher-x';

const x = [1, 2, 3];
console.log(pusher([4, 5, 6], 1, x)); // [1, 2, 3, 5, 6]