chore: simplify code in apiWatch.ts (#101)
This commit is contained in:
parent
600ec5de42
commit
ec8f7c6375
@ -231,12 +231,12 @@ function traverse(value: any, seen: Set<any> = new Set()) {
|
||||
traverse(value[i], seen)
|
||||
}
|
||||
} else if (value instanceof Map) {
|
||||
;(value as any).forEach((v: any, key: any) => {
|
||||
value.forEach((v, key) => {
|
||||
// to register mutation dep for existing keys
|
||||
traverse(value.get(key), seen)
|
||||
})
|
||||
} else if (value instanceof Set) {
|
||||
;(value as any).forEach((v: any) => {
|
||||
value.forEach(v => {
|
||||
traverse(v, seen)
|
||||
})
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user