function remove(xs, x) {
  xs.splice(xs.indexOf(x), 1);
}
Removes a given element from a given array.
@param {any[]} xs An array to remove the specific element.
@param {any} x An element to be removed.
@returns {void}