es-toolkit 1.48.1-dev.1884 → 1.48.1-dev.1886

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,16 +9,16 @@ const require_flattenArrayLike = require("../_internal/flattenArrayLike.js");
9
9
  * Computes the difference between an array and multiple arrays using an iteratee function.
10
10
  *
11
11
  * @template T
12
- * @param arr - The primary array from which to derive the difference.
12
+ * @param array - The primary array from which to derive the difference.
13
13
  * @param values - Multiple arrays containing elements to be excluded from the primary array.
14
14
  * @returns A new array containing the elements that are present in the primary array but not in the values arrays.
15
15
  */
16
- function differenceBy(arr, ..._values) {
17
- if (!require_isArrayLikeObject.isArrayLikeObject(arr)) return [];
16
+ function differenceBy(array, ..._values) {
17
+ if (!require_isArrayLikeObject.isArrayLikeObject(array)) return [];
18
18
  const iteratee$1 = require_last.last(_values);
19
19
  const values = require_flattenArrayLike.flattenArrayLike(_values);
20
- if (require_isArrayLikeObject.isArrayLikeObject(iteratee$1)) return require_difference.difference(Array.from(arr), values);
21
- return require_differenceBy.differenceBy(Array.from(arr), values, require_iteratee.iteratee(iteratee$1));
20
+ if (require_isArrayLikeObject.isArrayLikeObject(iteratee$1)) return require_difference.difference(Array.from(array), values);
21
+ return require_differenceBy.differenceBy(Array.from(array), values, require_iteratee.iteratee(iteratee$1));
22
22
  }
23
23
  //#endregion
24
24
  exports.differenceBy = differenceBy;
@@ -9,16 +9,16 @@ import { flattenArrayLike } from "../_internal/flattenArrayLike.mjs";
9
9
  * Computes the difference between an array and multiple arrays using an iteratee function.
10
10
  *
11
11
  * @template T
12
- * @param arr - The primary array from which to derive the difference.
12
+ * @param array - The primary array from which to derive the difference.
13
13
  * @param values - Multiple arrays containing elements to be excluded from the primary array.
14
14
  * @returns A new array containing the elements that are present in the primary array but not in the values arrays.
15
15
  */
16
- function differenceBy(arr, ..._values) {
17
- if (!isArrayLikeObject(arr)) return [];
16
+ function differenceBy(array, ..._values) {
17
+ if (!isArrayLikeObject(array)) return [];
18
18
  const iteratee$1 = last(_values);
19
19
  const values = flattenArrayLike(_values);
20
- if (isArrayLikeObject(iteratee$1)) return difference(Array.from(arr), values);
21
- return differenceBy$1(Array.from(arr), values, iteratee(iteratee$1));
20
+ if (isArrayLikeObject(iteratee$1)) return difference(Array.from(array), values);
21
+ return differenceBy$1(Array.from(array), values, iteratee(iteratee$1));
22
22
  }
23
23
  //#endregion
24
24
  export { differenceBy };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
- "version": "1.48.1-dev.1884+f983dc6c",
3
+ "version": "1.48.1-dev.1886+2e9ce80b",
4
4
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
5
5
  "homepage": "https://es-toolkit.dev",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",