function remove(arr, obj) {
  const i = arr.indexOf(obj);
  const found = i > -1;
  if (found) {
    arr.splice(i, 1);
  }
  return found;
}
@param {Array<VALUE>} arr The array to modify.
@param {VALUE} obj The element to remove.
@template VALUE
@return {boolean} If the element was removed.