Skip to content

self-assert / Requirements / hasExactly

Function: hasExactly() ​

hasExactly(aNumber): (list) => boolean

Returns a predicate that holds when the list has exactly the given number of elements

Parameters ​

ParameterType
aNumbernumber

Returns ​

(list): boolean

Parameters ​

ParameterType
listArrayLike<unknown>

Returns ​

boolean