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

utils/any
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Returns `true` if at least one of elements of the list match the predicate,

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/any in your project
npm i @bit/bit.ramda.utils.any
Copied

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

Returns true if at least one of elements of the list match the predicate, false otherwise.

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

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

Example

var lessThan0 = R.flip(R.lt)(0);
     var lessThan2 = R.flip(R.lt)(2);
     R.any(lessThan0)([1, 2]); //=> false
     R.any(lessThan2)([1, 2]); //=> true

Arguments

fn: Function

The predicate function.

list: Array

The array to consider.

Returns

Boolean

`true` if the predicate is satisfied by at least one element, `false` otherwise.