Function
addIdentity
(object: any, path: any[], identities: Map<any, any[][]>)
Source from the content-addressed store, hash-verified
| 123 | isInstanceOfRegisteredClass(object, superJson); |
| 124 | |
| 125 | function addIdentity(object: any, path: any[], identities: Map<any, any[][]>) { |
| 126 | const existingSet = identities.get(object); |
| 127 | |
| 128 | if (existingSet) { |
| 129 | existingSet.push(path); |
| 130 | } else { |
| 131 | identities.set(object, [path]); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | interface Result { |
| 136 | transformedValue: any; |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…