From 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 23 Feb 2023 19:34:56 +0100 Subject: Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated) --- school/node_modules/lodash/pullAt.js | 43 ------------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 school/node_modules/lodash/pullAt.js (limited to 'school/node_modules/lodash/pullAt.js') diff --git a/school/node_modules/lodash/pullAt.js b/school/node_modules/lodash/pullAt.js deleted file mode 100644 index 6ed84e0..0000000 --- a/school/node_modules/lodash/pullAt.js +++ /dev/null @@ -1,43 +0,0 @@ -var arrayMap = require('./_arrayMap'), - baseAt = require('./_baseAt'), - basePullAt = require('./_basePullAt'), - compareAscending = require('./_compareAscending'), - flatRest = require('./_flatRest'), - isIndex = require('./_isIndex'); - -/** - * Removes elements from `array` corresponding to `indexes` and returns an - * array of removed elements. - * - * **Note:** Unlike `_.at`, this method mutates `array`. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Array - * @param {Array} array The array to modify. - * @param {...(number|number[])} [indexes] The indexes of elements to remove. - * @returns {Array} Returns the new array of removed elements. - * @example - * - * var array = ['a', 'b', 'c', 'd']; - * var pulled = _.pullAt(array, [1, 3]); - * - * console.log(array); - * // => ['a', 'c'] - * - * console.log(pulled); - * // => ['b', 'd'] - */ -var pullAt = flatRest(function(array, indexes) { - var length = array == null ? 0 : array.length, - result = baseAt(array, indexes); - - basePullAt(array, arrayMap(indexes, function(index) { - return isIndex(index, length) ? +index : index; - }).sort(compareAscending)); - - return result; -}); - -module.exports = pullAt; -- cgit