export function isSubset(a: Iterable, b: Iterable): boolean { const bSet = new Set(b) return [...a].every(element => bSet.has(element)) }