deleteArrayElement(arr, elem) {
    const index = arr.indexOf(elem);
    if (index > -1) arr.splice(index, 1);
    return arr;
  }
Delete an element of the array
@param {array} arr - target array
@param {any} elem - an element
@return {array} Original array
@public