Skip to content

Welshman Docs / @welshman/lib / nth

Function: nth() ​

nth(i): <T>(xs, ...args) => T

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

Returns a function that gets the nth element of an array

Parameters ​

i ​

number

Returns ​

Function

Type Parameters ​

• T

Parameters ​

xs ​

T[]

args ​

...unknown[]

Returns ​

T