function remove(arr, obj) {
  const i = indexOf(arr, obj);
  let rv;
  if ((rv = i >= 0)) {
    removeAt(arr, i);
  }
  return rv;
}
Removes the first 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