1 var isIndex = require('./isIndex');
3 /** Used for native method references. */
4 var arrayProto = Array.prototype;
6 /** Native method references. */
7 var splice = arrayProto.splice;
10 * The base implementation of `_.pullAt` without support for individual
11 * index arguments and capturing the removed elements.
14 * @param {Array} array The array to modify.
15 * @param {number[]} indexes The indexes of elements to remove.
16 * @returns {Array} Returns `array`.
18 function basePullAt(array, indexes) {
19 var length = array ? indexes.length : 0;
21 var index = indexes[length];
22 if (index != previous && isIndex(index)) {
24 splice.call(array, index, 1);
30 module.exports = basePullAt;