Add methods to Array See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty
append
arguments
Appends a list of items or list of arrays to the end of this array. This functions like concat(), but works on the original array instead of making a copy.
arguments
A list of arrays or individual items.
This array.
last
array
Get the last item in the array
array
Array
The array
The last item
random
array
Get a random item from an array
array
Array
The array
The random item