(a: Set<string>, b: Set<string>)
| 908 | } |
| 909 | |
| 910 | function isSetEqual(a: Set<string>, b: Set<string>): boolean { |
| 911 | if (a.size !== b.size) { |
| 912 | return false |
| 913 | } |
| 914 | for (const s of a) { |
| 915 | if (!b.has(s)) { |
| 916 | return false |
| 917 | } |
| 918 | } |
| 919 | return true |
| 920 | } |
| 921 | |
| 922 | function toStyleMap(str: string): Map<string, string> { |
| 923 | const styleMap: Map<string, string> = new Map() |