Console
hyTags
Home
Home
Getting Started
Getting Started
Documentation
Documentation
array-keep-last
Creates a new array containing only the last `length` elements.
Parameter
Type
Description
self
[T]
Initial array
length
number
Number of elements to keep from the end
return
[T]
New array with last `length` elements