es-toolkit 1.50.0-dev.2055 → 1.50.0-dev.2056

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.
@@ -18,7 +18,7 @@ const require_at = require("./at.js");
18
18
  */
19
19
  function pullAt(arr, indicesToRemove) {
20
20
  const removed = require_at.at(arr, indicesToRemove);
21
- const indices = new Set(indicesToRemove.slice().sort((x, y) => y - x));
21
+ const indices = new Set(indicesToRemove.map((index) => index < 0 ? index + arr.length : index).sort((x, y) => y - x));
22
22
  for (const index of indices) arr.splice(index, 1);
23
23
  return removed;
24
24
  }
@@ -18,7 +18,7 @@ import { at } from "./at.mjs";
18
18
  */
19
19
  function pullAt(arr, indicesToRemove) {
20
20
  const removed = at(arr, indicesToRemove);
21
- const indices = new Set(indicesToRemove.slice().sort((x, y) => y - x));
21
+ const indices = new Set(indicesToRemove.map((index) => index < 0 ? index + arr.length : index).sort((x, y) => y - x));
22
22
  for (const index of indices) arr.splice(index, 1);
23
23
  return removed;
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
- "version": "1.50.0-dev.2055+658bc937",
3
+ "version": "1.50.0-dev.2056+6d186257",
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",