/* * @author 春风 * @date 2021/7/8 下午2:53 **/ function basePullAt(array: any, indexes: string | any[]) { let length = array ? indexes.length : 0, lastIndex = length - 1, previous = 0; while (length--) { const index = indexes[length]; if (length == lastIndex || index !== previous) { previous = index; Array.prototype.splice.call(array, index, 1); } } return array; } export { basePullAt };