Returns the last element of the given array
Optional
the array to inspect
the default value if the array is empty
the last element of the given array
David Hsing
getLast(['foo', 'bar']); // 'bar' Copy
getLast(['foo', 'bar']); // 'bar'
Returns the last element of the given array