hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

array-keep-first

Creates a new array containing only the first `length` elements.
Parameter
Type
Description
self
[T]
Initial array
length
number
Number of elements to keep from the start
return
[T]
New array with first `length` elements