Skip to content

isDisjointFrom

isDisjointFrom<T>(a, b, comparisonStrategy?): boolean

Defined in: set/is-disjoint-from.ts:14

Checks whether a and b share no elements.

Time complexity: O(|a| + |b|) under the default "sameValueZero".

T

Iterable<T>

The first iterable.

Iterable<T>

The second iterable.

EqualityComparisonStrategy<T, T> = "sameValueZero"

The equality comparison strategy to use.

boolean

true if a and b have no elements in common.