Skip to content

self-assert / Requirements / allSatisfy

Function: allSatisfy() ​

allSatisfy<ElementType>(predicate): (list) => boolean

Returns a predicate that holds when all elements of the list satisfy the given condition

Type Parameters ​

Type Parameter
ElementType

Parameters ​

ParameterType
predicatePredicate<ElementType>

Returns ​

(list): boolean

Parameters ​

ParameterType
listIterable<ElementType>

Returns ​

boolean