code: function removeIndicesFromArray(indices, array) {
    if (!indices.length) {
      return array;
    }
  
    let indexToRemove = indices.shift();
  
    return reduce(
      (newArray, item, index) => {
        if (index !== indexToRemove) {
          return [...newArray, item];
        }
  
        indexToRemove = indices.shift();
  
        return newArray;
      },
      [],
      array
    );
  }
docs: @function removeIndicesFromArray
  
  @description
  immutably remove the indices from the array passed
  
  @param {Array<number>} indices the indices to remove
  @param {Array<*>} array the array to update
  @returns {Array<*>} a shallow clone of the array passed, minus the index