📌  相关文章
📜  javascript 检查数组是否是另一个数组的子集 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:30             🧑  作者: Mango

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