Welshman Docs / @welshman/lib / ffirst
Function: ffirst() ​
ffirst<
T>(xs, ...args):undefined|T
Defined in: packages/lib/src/Tools.ts:381
Returns the first element of the first array in a nested array
Type Parameters ​
T ​
T
Parameters ​
xs ​
Iterable<Iterable<T, any, any>>
Array of arrays
args ​
...unknown[]
Returns ​
undefined | T
First element of first array or undefined