docs: 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
    );
  }