Skip to main content

Function: none()

Returns true if fn returns a falsy value for all values of iterable. Otherwise returns false.

Example

console.log(
pipe(
[`sloth`, `more sloth`, `even more sloth`],
none(string => string.length > 8),
),
)
//=> false

none(fn)

none<Value>(fn): (iterable) => boolean

Returns true if fn returns a falsy value for all values of iterable. Otherwise returns false.

Type Parameters

Value

Parameters

fn

Returns

Function

Parameters

iterable: Iterable<Value, any, any>

Returns

boolean

Example

console.log(
pipe(
[`sloth`, `more sloth`, `even more sloth`],
none(string => string.length > 8),
),
)
//=> false

Defined in

predicates.d.ts:179

none(fn, iterable)

none<Value>(fn, iterable): boolean

Returns true if fn returns a falsy value for all values of iterable. Otherwise returns false.

Type Parameters

Value

Parameters

fn

iterable: Iterable<Value, any, any>

Returns

boolean

Example

console.log(
pipe(
[`sloth`, `more sloth`, `even more sloth`],
none(string => string.length > 8),
),
)
//=> false

Defined in

predicates.d.ts:179