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.
- package/dist/{chunk-74WWMNZS.mjs → chunk-OLX53VEF.mjs} +4 -2
- package/dist/{chunk-74WWMNZS.mjs.map → chunk-OLX53VEF.mjs.map} +1 -1
- package/dist/compat/index.js +3 -1
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/object/index.js +3 -1
- package/dist/object/index.js.map +1 -1
- package/dist/object/index.mjs +1 -1
- package/dist/object/invert.js +3 -1
- package/dist/object/invert.js.map +1 -1
- package/dist/object/invert.mjs +1 -1
- package/package.json +1 -1
package/dist/compat/index.mjs
CHANGED
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
|
-
|
|
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
|
}
|