es-toolkit 1.10.1-dev.227 → 1.10.1-dev.229

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.
@@ -42,7 +42,7 @@ import {
42
42
  } from "../chunk-U4JGKZ56.mjs";
43
43
  import {
44
44
  invert
45
- } from "../chunk-74WWMNZS.mjs";
45
+ } from "../chunk-OLX53VEF.mjs";
46
46
  import {
47
47
  omit
48
48
  } from "../chunk-QZITBKWX.mjs";
package/dist/index.js CHANGED
@@ -834,7 +834,9 @@ function pickBy(obj, shouldPick) {
834
834
  // src/object/invert.ts
835
835
  function invert(obj) {
836
836
  const result = {};
837
- for (const key in obj) {
837
+ const keys = Object.keys(obj);
838
+ for (let i = 0; i < keys.length; i++) {
839
+ const key = keys[i];
838
840
  const value = obj[key];
839
841
  result[value] = key;
840
842
  }