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

utils/none
v1.1.0
1.1.0
1.0.0
Returns `true` if no elements of the list match the predicate, `false`

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

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

Returns true if no 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 isEven = n => n % 2 === 0;
     var isOdd = n => n % 2 === 1;

     R.none(isEven, [1, 3, 5, 7, 9, 11]); //=> true
     R.none(isOdd, [1, 3, 5, 7, 8, 11]); //=> false

Arguments

fn: Function

The predicate function.

list: Array

The array to consider.

Returns

Boolean

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