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