Skip to content

Welshman Docs / @welshman/lib / nthEq

Function: nthEq() ​

nthEq(i, v): (xs, ...args) => boolean

Defined in: packages/lib/src/Tools.ts:595

Returns a function that checks if nth element equals value

Parameters ​

i ​

number

v ​

any

Returns ​

Function

Parameters ​

xs ​

any[]

args ​

...unknown[]

Returns ​

boolean