Skip to content

Welshman Docs / @welshman/lib / ffirst

Function: ffirst() ​

ffirst<T>(xs, ...args): T

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

Returns the first element of the first array in a nested array

Type Parameters ​

• T

Parameters ​

xs ​

T[][]

Array of arrays

args ​

...unknown[]

Returns ​

T

First element of first array or undefined