varbaseUnset=require('./_baseUnset'),isIndex=require('./_isIndex');/** Used for built-in method references. */vararrayProto=Array.prototype;/** Built-in value references. */varsplice=arrayProto.splice;/** * 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`. */functionbasePullAt(array,indexes){varlength=array?indexes.length:0,lastIndex=length-1;while(length--){varindex=indexes[length];if(length==lastIndex||index!==previous){varprevious=index;if(isIndex(index)){splice.call(array,index,1);}else{baseUnset(array,index);}}}returnarray;}module.exports=basePullAt;