Returns a copy of the array containing only the last num elements (or fewer if the array is shorter).
num
num — how many elements to keep from the end.
log [1,2,3,4].right(2) // [3,4]
Last updated 4 months ago