none

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
1 KB
Returns `true` if no elements of the list match the predicate, `false` otherwise.
1 contributor
Install none as a package?
Copied
npm i @bit/justin-capalbo.ramda.none
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
none (
fn:Function,
list:Array
) : Boolean

Returns true if no elements of the list match the predicate, false otherwise.

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

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

Example
const isEven = n => n % 2 === 0;
     const 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.

Help and resources