toSet()
Create a new Set from an Enumerable.
Returns
(Set): New Set created from an Enumerable.
Example
const set = Enumerable
.from([1, 2, 3])
.toSet();
// set === new Set([1, 2, 3])
toSet()
Create a new Set from an Enumerable.
(Set): New Set created from an Enumerable.
const set = Enumerable
.from([1, 2, 3])
.toSet();
// set === new Set([1, 2, 3])