Console
hyTags
Home
Home
Getting Started
Getting Started
Documentation
Documentation
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