hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

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