Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

23
node_modules/es-toolkit/dist/compat/array/pullAll.mjs generated vendored Normal file
View File

@@ -0,0 +1,23 @@
import { pull } from "../../array/pull.mjs";
//#region src/compat/array/pullAll.ts
/**
* Removes all specified values from an array.
*
* This function changes `arr` in place.
* If you want to remove values without modifying the original array, use `difference`.
*
* @template T
* @param {T[]} arr - The array to modify.
* @param {ArrayLike<T>} valuesToRemove - The values to remove from the array.
* @returns {T[]} The modified array with the specified values removed.
*
* @example
* const numbers = [1, 2, 3, 4, 5, 2, 4];
* pullAll(numbers, [2, 4]);
* console.log(numbers); // [1, 3, 5]
*/
function pullAll(arr, valuesToRemove = []) {
return pull(arr, Array.from(valuesToRemove));
}
//#endregion
export { pullAll };