Returns true when a and b have no element in common. When b is a collection from this
library, each element of a is looked up with b.has, so b's key, equivalence or
comparator applies; otherwise, when a is one, each element of b is looked up with a.has;
otherwise elements are compared with SameValueZero. With collections that compare differently,
the answer can depend on the order of the arguments. Maps are iterated as their entries; pass
map.keys() to compare keys.
Time: O(n + m) expected with hash lookups, O(n log m) with a sorted collection, O(n·m) with a
list.
Returns
truewhenaandbhave no element in common. Whenbis a collection from this library, each element ofais looked up withb.has, sob'skey,equivalenceor comparator applies; otherwise, whenais one, each element ofbis looked up witha.has; otherwise elements are compared with SameValueZero. With collections that compare differently, the answer can depend on the order of the arguments. Maps are iterated as their entries; passmap.keys()to compare keys.Time: O(n + m) expected with hash lookups, O(n log m) with a sorted collection, O(n·m) with a list.