Share your code. Components are building blocks, you are the architect.

utils/all
v1.0.0
1.0.0
MIT
PUBLIC
0
Build: none
BuildNone
Returns `true` if all elements of the list match the predicate, `false` if

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/all in your project
npm i @bit/bit.ramda.utils.all
Copied

all (fn:Function, list:Array) : Boolean

Returns true if all elements of the list match the predicate, false if there are any that don’t.

Dispatches to the all method of the second argument, if present.

Acts as a transducer if a transformer is given in list position.

Example

var equals3 = R.equals(3);
     R.all(equals3)([3, 3, 3, 3]); //=> true
     R.all(equals3)([3, 3, 1, 3]); //=> false

Arguments

fn: Function

The predicate function.

list: Array

The array to consider.

Returns

Boolean

`true` if the predicate is satisfied by every element, `false` otherwise.