function removeLast(arr, obj) {
  const i = lastIndexOf(arr, obj);
  if (i >= 0) {
    removeAt(arr, i);
    return true;
  }
  return false;
}
Removes the last occurrence of a particular value from an array.
@param {!IArrayLike<T>} arr Array from which to remove value.
@param {T} obj Object to remove.
@return {boolean} True if an element was removed.
@template T