libs/modularize/_basePullAt.js
function basePullAt(array, indexes) {
  var length = array ? indexes.length : 0,
      lastIndex = length - 1;

  while (length--) {
    var index = indexes[length];
    if (length == lastIndex || index !== previous) {
      var previous = index;
      if (isIndex(index)) {
        splice.call(array, index, 1);
      }
      else if (!isKey(index, array)) {
        var path = castPath(index),
            object = parent(array, path);

        if (object != null) {
          delete object[toKey(last(path))];
        }
      }
      else {
        delete array[toKey(index)];
      }
    }
  }
  return array;
}
function basePullAt(array, indexes) {
  var length = array ? indexes.length : 0,
      lastIndex = length - 1;

  while (length--) {
    var index = indexes[length];
    if (length == lastIndex || index !== previous) {
      var previous = index;
      if (isIndex(index)) {
        splice.call(array, index, 1);
      }
      else if (!isKey(index, array)) {
        var path = castPath(index),
            object = parent(array, path);

        if (object != null) {
          delete object[toKey(last(path))];
        }
      }
      else {
        delete array[toKey(index)];
      }
    }
  }
  return array;
}
function basePullAt ( array , indexes ) { var length = array ? indexes . length : 0 , lastIndex = length - 1 ; while ( length -- ) { var index = indexes [ length ] ; if ( length == lastIndex || index !== previous ) { var previous = index ; if ( isIndex ( index ) ) { splice . call ( array , index , 1 ) ; } else if ( ! isKey ( index , array ) ) { var path = castPath ( index ) , object = parent ( array , path ) ; if ( object != null ) { delete object [ toKey ( last ( path ) ) ] ; } } else { delete array [ toKey ( index ) ] ; } } } return array ; }
The base implementation of `_.pullAt` without support for individual
indexes or capturing the removed elements.

@private
@param {Array} array The array to modify.
@param {number[]} indexes The indexes of elements to remove.
@returns {Array} Returns `array`.
The base implementation of _ . pullAt without support for individual indexes or capturing the removed elements .