function removeAt(arr, i) {
  asserts.assert(arr.length != null);

  // use generic form of splice
  // splice returns the removed items and if successful the length of that
  // will be 1
  return Array.prototype.splice.call(arr, i, 1).length == 1;
}
Removes from an array the element at index i
@param {IArrayLike<?>} arr Array or array like object from which to
    remove value.
@param {number} i The index to remove.
@return {boolean} True if an element was removed.