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 454127c commit 6a9bdc2Copy full SHA for 6a9bdc2
packages/form/source/state.ts
@@ -194,7 +194,7 @@ export abstract class State {
194
() => Array.prototype.slice.call(object, 0)
195
);
196
}
197
- else if (object instanceof WeakMap || object instanceof Map) {
+ else if (object instanceof Map) {
198
return metaOperations(
199
// Update map key
200
(parent, key: number | string, value: K) => {
@@ -217,9 +217,7 @@ export abstract class State {
217
},
218
219
// Clone
220
- () => object instanceof WeakMap
221
- ? new WeakMap<string, any>(<any> object)
222
- : new Map<string, any>(<any> object)
+ () => new Map<string, any>(<any> object)
223
224
225
else if (object instanceof WeakSet || object instanceof Set) {
0 commit comments