Edit This Page

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])