Preparing search index...
The search index is not available
Welshman Docs
Welshman Docs
@welshman/lib
take
Function take
Returns first n elements of array
take
<
T
>
(
n
:
number
,
xs
:
T
[]
)
:
T
[]
Type Parameters
T
Parameters
n
:
number
Number of elements to take
xs
:
T
[]
Input array
Returns
T
[]
Array of first n elements
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Welshman Docs
Loading...
Returns first n elements of array