immutable-array.push

0.1.0 • Public • Published

immutable-array.push

travis ci npm version Coverage Status Dependency Status

immutable-array.push provides a function that returns the concatenation of an immutable array with an item.

Install

$ npm install immutable-array.push --save

Usage

const ImmutableArray = {
    of: require('immutable-array.of'),
    push: require('immutable-array.push')
}
 
const a = ImmutableArray.of([1, 2, 3, 4, 5]) // {array: [1, 2, 3, 4, 5], length: 5}
const b = ImmutableArray.push(6, a) // {array: [1, 2, 3, 4, 5, 6], length: 6}
// {array: [1, 2, 3, 4, 5, 6], length: 5}

Other related libraries

Support

  • Node.js >=6
  • ES2015 transpilers

License

MIT

Package Sidebar

Install

npm i immutable-array.push

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

7.75 kB

Total Files

4

Last publish

Collaborators

  • xgbuils