(value: any)
| 299 | * Hashes the value into a stable hash. |
| 300 | */ |
| 301 | export function stableValueHash(value: any): string { |
| 302 | return JSON.stringify(value, (_, val) => |
| 303 | isPlainObject(val) |
| 304 | ? Object.keys(val) |
| 305 | .sort() |
| 306 | .reduce((result, key) => { |
| 307 | result[key] = val[key] |
| 308 | return result |
| 309 | }, {} as any) |
| 310 | : val |
| 311 | ) |
| 312 | } |
| 313 | |
| 314 | /** |
| 315 | * Checks if key `b` partially matches with key `a`. |
no test coverage detected
searching dependent graphs…