Takeright

_.takeRight(array, [n=1])

Creates a slice of array with n elements taken from the end.

Arguments

array (Array): The array to query.
[n=1] (number): The number of elements to take.

Returns

(Array): Returns the slice of array.

Example

Deep