(a: any, b: any)
| 231 | */ |
| 232 | export function partialMatchKey(a: QueryKey, b: QueryKey): boolean |
| 233 | export function partialMatchKey(a: any, b: any): boolean { |
| 234 | if (a === b) { |
| 235 | return true |
| 236 | } |
| 237 | |
| 238 | if (typeof a !== typeof b) { |
| 239 | return false |
| 240 | } |
| 241 | |
| 242 | if (a && b && typeof a === 'object' && typeof b === 'object') { |
| 243 | return Object.keys(b).every((key) => partialMatchKey(a[key], b[key])) |
| 244 | } |
| 245 | |
| 246 | return false |
| 247 | } |
| 248 | |
| 249 | const hasOwn = Object.prototype.hasOwnProperty |
| 250 |
no outgoing calls
no test coverage detected
searching dependent graphs…