+4
-3
lines changedFilter options
+4
-3
lines changed Original file line number Diff line number Diff line change
@@ -18,7 +18,8 @@ import {
18
18
NOOP,
19
19
remove,
20
20
isMap,
21
-
isSet
21
+
isSet,
22
+
isPlainObject
22
23
} from '@vue/shared'
23
24
import {
24
25
currentInstance,
@@ -391,9 +392,9 @@ function traverse(value: unknown, seen: Set<unknown> = new Set()) {
391
392
value.forEach((v: any) => {
392
393
traverse(v, seen)
393
394
})
394
-
} else {
395
+
} else if (isPlainObject(value)) {
395
396
for (const key in value) {
396
-
traverse(value[key], seen)
397
+
traverse((value as any)[key], seen)
397
398
}
398
399
}
399
400
return value
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4