Skip to content

A function that returns true if predicate returns `true` for all items of immutable array and `false` if not.

Notifications You must be signed in to change notification settings

xgbuils/immutable-array.every

Repository files navigation

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

About

A function that returns true if predicate returns `true` for all items of immutable array and `false` if not.

Resources

Stars

Watchers

Forks

Packages

No packages published