immutable-array.every
v0.1.0
Published
given an immutable array and item it returns a new immutable array that represents the concatenation of immutable array and the item
Downloads
5
Readme
immutable-array.every
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