xdashReadme | API


xdash / takeRight

Function: takeRight()

takeRight<T>(arr, size): T[]

Returns the last n elements of an array

Type parameters

T

Parameters

arr: T[]

size: number

Returns

T[]

Source

array.ts:37