Skip to main content

Function: noneConcur()

Returns a promise that resolves to true if fn returns a falsy value or a promise that resolves to a falsy value for all values of concurIterable. Otherwise returns a promise that resolves to false.

Example

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

noneConcur(fn)

noneConcur<Value>(fn): (concurIterable) => Promise<boolean>

Returns a promise that resolves to true if fn returns a falsy value or a promise that resolves to a falsy value for all values of concurIterable. Otherwise returns a promise that resolves to false.

Type Parameters

Value

Parameters

fn

Returns

Function

Parameters

concurIterable: ConcurIterable<Value>

Returns

Promise<boolean>

Example

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

Defined in

predicates.d.ts:219

noneConcur(fn, concurIterable)

noneConcur<Value>(fn, concurIterable): Promise<boolean>

Returns a promise that resolves to true if fn returns a falsy value or a promise that resolves to a falsy value for all values of concurIterable. Otherwise returns a promise that resolves to false.

Type Parameters

Value

Parameters

fn

concurIterable: ConcurIterable<Value>

Returns

Promise<boolean>

Example

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

Defined in

predicates.d.ts:219