static remove(array, element) {
    const index = array.indexOf(element);
    if (index > -1) {
      array.splice(index, 1);
    }
  }
Remove given element from array (assumes no duplicates).
@param {!Array<T>} array
@param {T} element
@template T