We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d222b commit 19cbe47Copy full SHA for 19cbe47
src/utils/common.ts
@@ -203,8 +203,8 @@ export function freeze<T>(obj: any, deep: boolean = false): T {
203
Object.freeze(obj)
204
if (deep)
205
// See #590, don't recurse into non-enumerable / Symbol properties when freezing
206
- // So use Object.entries (only string-like, enumerables) instead of each()
207
- Object.entries(obj).forEach(([key, value]) => freeze(value, true))
+ // So use Object.values (only string-like, enumerables) instead of each()
+ Object.values(obj).forEach(value => freeze(value, true))
208
return obj
209
}
210
0 commit comments