isDisjoint
Checks if the two iterables are disjointed (have no common values).
- Use the
new Set()constructor to create a newSetobject from each iterable. - Use
Array.prototype.every()andSet.prototype.has()to check that the two iterables have no common values.