Preparing search index...
The search index is not available
Welshman Docs
Welshman Docs
@welshman/lib
first
Function first
Returns the first element of an array
first
<
T
>
(
xs
:
T
[]
,
...
args
:
unknown
[]
)
:
T
Type Parameters
T
Parameters
xs
:
T
[]
The array
...
args
:
unknown
[]
Returns
T
First element or undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Welshman Docs
Loading...
Returns the first element of an array