题解 | #相同的Set#
相同的Set
https://www.nowcoder.com/practice/1417539606b84ad081147516158153a1
const _isSameSet = (s1, s2) => {
for(let i = 0; i <s1.length; i++){
if( !s2.indexOf(s1[i]))
return false;
}
return true;
}

查看1道真题和解析