Removes the last element from an array and returns it.
function pop() : Object
If the array is empty, undefined is returned.
Version 5.5
Array Object