( a: ReadonlyMap<string, BareItem>, b: ReadonlyMap<string, BareItem>, )
| 844 | |
| 845 | // Compare parameters for equality |
| 846 | function paramsEqual( |
| 847 | a: ReadonlyMap<string, BareItem>, |
| 848 | b: ReadonlyMap<string, BareItem>, |
| 849 | ): boolean { |
| 850 | if (a.size !== b.size) return false; |
| 851 | for (const [key, val] of a) { |
| 852 | const bVal = b.get(key); |
| 853 | if (!bVal || !bareItemsEqual(val, bVal)) return false; |
| 854 | } |
| 855 | return true; |
| 856 | } |
| 857 | |
| 858 | // Compare items for equality |
| 859 | function itemsEqual(a: Item, b: Item): boolean { |
no test coverage detected