Function: none()
Returns true
if fn
returns a falsy value for all values of iterable
.
Otherwise returns false
.
Example
import { none, pipe } from 'lfi'
console.log(
pipe(
[`sloth`, `lazy`, `sleep`],
none(word => word.includes(`s`)),
),
)
//=> false
console.log(
pipe(
[`sloth`, `lazy`, `sleep`],
none(word => word.includes(`x`)),
),
)
//=> true
Since
v0.0.1
Call Signature
none<
Value
>(fn
): (iterable
) =>boolean
Type Parameters
• Value