The source iterable.
An Iterable
Produces the set difference of two sequences.
const items = [1, 2, 3, 4];
const exceptItems = from(items).except([2, 4]); // [1, 3]
TSource The type of source elements.
A sequence that contains the set difference of the elements of two sequences.
The source iterable.
Rest
...second: Iterable<TSource>[]An Iterable
Produces the set difference of two sequences.
const items = [1, 2, 3, 4];
const exceptItems = from(items).except([2, 4], (a, b) => a === b); // [1, 3]
TSource The type of source elements.
A sequence that contains the set difference of the elements of two sequences.
The source iterable.
An Iterable
An EqualityComparer
Produces the set difference of two sequences.
const items = [1, 2, 3, 4];
const exceptItems = from(items).except([2, 4], [3], (a, b) => a === b); // [1]
TSource The type of source elements.
A sequence that contains the set difference of the elements of two sequences.
The source iterable.
An Iterable
An Iterable
An EqualityComparer
Produces the set difference of two sequences.
const items = [1, 2, 3, 4, 5, 6, 7];
const exceptItems = from(items).except([2, 4], [3, 5], [7], (a, b) => a === b); // [1, 6]
TSource The type of source elements.
A sequence that contains the set difference of the elements of two sequences.
The source iterable.
An Iterable
An Iterable
An Iterable
An EqualityComparer
Generated using TypeDoc
Produces the set difference of two sequences.
Example
Typeparam
TSource The type of source elements.
Returns
A sequence that contains the set difference of the elements of two sequences.