function peek(array) {
  return array[array.length - 1];
}
Returns the last element in an array without removing it.
Same as {@link goog.array.last}.
@param {IArrayLike<T>|string} array The array.
@return {T} Last item in array.
@template T