0.1.0 • Published 6 years ago

immutable-array.every v0.1.0

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

immutable-array.every

travis ci npm version Coverage Status Dependency Status

immutable-array.every provides a function that returns true if predicate returns true for all items of immutable array and false if not.

Install

$ npm install immutable-array.every --save

Usage

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

const array = ImmutableArray.of([1, 2, 3, 4, 5]) // {array: [1, 2, 3, 4, 5], length: 5}
ImmutableArray.every(e => e <= 3, array) // false
ImmutableArray.every(e => e >= 1, array) // true

Other related libraries

Support

  • Node.js >=6
  • ES2015 transpilers

License

MIT