util-pusher-x
A simple pusher/concatenator utility.
Last updated 5 years ago by xotic750 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install util-pusher-x 
SYNC missed versions from official npm registry.

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

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

import pusher from 'util-pusher-x';

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

Current Tags

  • 1.0.3                                ...           latest (5 years ago)

4 Versions

  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE