(params: {[key: string]: any})
| 559 | } |
| 560 | |
| 561 | function stringify(params: {[key: string]: any}): {[key: string]: string} { |
| 562 | const res: {[key: string]: string} = {}; |
| 563 | Object.entries(params).forEach(([k, v]) => (res[k] = `${v}`)); |
| 564 | return res; |
| 565 | } |
| 566 | |
| 567 | function compare(path: string, params: {[key: string]: any}, segment: UrlSegment): boolean { |
| 568 | return path == segment.path && shallowEqual(params, segment.parameters); |
no test coverage detected
searching dependent graphs…