let superSet = ['B', 'C', 'A', 'D']; let subSet = ['D', 'C']; let mixedSet = new Set([...superSet, ...subSet]); let isSubset = mixedSet.size == superSet.length