es-toolkit 1.48.1-dev.1880 → 1.48.1-dev.1882

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.
@@ -13,7 +13,7 @@ const require_matchesProperty = require("../predicate/matchesProperty.js");
13
13
  * predicate function returns false. It then returns a new array with the remaining elements.
14
14
  *
15
15
  * @template T - The type of elements in the array.
16
- * @param arr - The array from which to drop elements.
16
+ * @param array - The array from which to drop elements.
17
17
  * @param predicate - A predicate function that determines
18
18
  * whether to continue dropping elements. The function is called with each element, index, and array, and dropping
19
19
  * continues as long as it returns true.
@@ -24,9 +24,9 @@ const require_matchesProperty = require("../predicate/matchesProperty.js");
24
24
  * const result = dropRightWhile(array, (item, index, arr) => index >= 1);
25
25
  * // Returns: [3]
26
26
  */
27
- function dropRightWhile(arr, predicate = require_identity.identity) {
28
- if (!require_isArrayLike.isArrayLike(arr)) return [];
29
- return dropRightWhileImpl(require_toArray.toArray(arr), predicate);
27
+ function dropRightWhile(array, predicate = require_identity.identity) {
28
+ if (!require_isArrayLike.isArrayLike(array)) return [];
29
+ return dropRightWhileImpl(require_toArray.toArray(array), predicate);
30
30
  }
31
31
  function dropRightWhileImpl(arr, predicate) {
32
32
  switch (typeof predicate) {
@@ -13,7 +13,7 @@ import { matchesProperty } from "../predicate/matchesProperty.mjs";
13
13
  * predicate function returns false. It then returns a new array with the remaining elements.
14
14
  *
15
15
  * @template T - The type of elements in the array.
16
- * @param arr - The array from which to drop elements.
16
+ * @param array - The array from which to drop elements.
17
17
  * @param predicate - A predicate function that determines
18
18
  * whether to continue dropping elements. The function is called with each element, index, and array, and dropping
19
19
  * continues as long as it returns true.
@@ -24,9 +24,9 @@ import { matchesProperty } from "../predicate/matchesProperty.mjs";
24
24
  * const result = dropRightWhile(array, (item, index, arr) => index >= 1);
25
25
  * // Returns: [3]
26
26
  */
27
- function dropRightWhile(arr, predicate = identity) {
28
- if (!isArrayLike(arr)) return [];
29
- return dropRightWhileImpl(toArray(arr), predicate);
27
+ function dropRightWhile(array, predicate = identity) {
28
+ if (!isArrayLike(array)) return [];
29
+ return dropRightWhileImpl(toArray(array), predicate);
30
30
  }
31
31
  function dropRightWhileImpl(arr, predicate) {
32
32
  switch (typeof predicate) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
- "version": "1.48.1-dev.1880+725e59fa",
3
+ "version": "1.48.1-dev.1882+0553bc3a",
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",