0.1.0 • Published 6 years ago

immutable-array.reduce v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

immutable-array.reduce

travis ci npm version Coverage Status Dependency Status

immutable-array.reduce returns a value by applying iterator function over accumulator and each element of immutable. The accumulator starts with the initialValue

Install

$ npm install immutable-array.reduce --save

Usage

const ImmutableArray = {
    of: require('immutable-array.of'),
    reduce: require('immutable-array.reduce')
}

const a = ImmutableArray.of([1, 2, 3, 4, 5]) // {array: [1, 2, 3, 4, 5], length: 5}
const b = ImmutableArray.reduce((a, b) => a + b, 0) // 15

Other related libraries

Support

  • Node.js >=6
  • ES2015 transpilers

License

MIT