immutable-array.every

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i immutable-array.every

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

4.69 kB

Total Files

4

Last publish

Collaborators

  • xgbuils