xdash / first
Function: first()
first<
T
>(arr
):T
Returns the first element of an array
Type parameters
• T
Parameters
• arr: T
[]
array to get the first element from
Returns
T
the first element of the array
xdash / first
first<
T
>(arr
):T
Returns the first element of an array
• T
• arr: T
[]
array to get the first element from
T
the first element of the array