Set.constructor

The Set constructor.

Syntax

new Set(iterable?)

Parameters

Examples

let s = new Set([1, 2, 3])
s.size
3