Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 547 Bytes

ImmutableSet.md

File metadata and controls

23 lines (17 loc) · 547 Bytes

Immutable Set

Examples

Initialization

const a = ImmutableSet([1, 2]);

Extension

const b = a.add(3);

Type

typeof ImmutableSet(); // 'set'

Prototype

Value types are not objects and have no prototype. Member expressions are exposed on the Immutable Set's prototype which is unique for each realm, just like other value types. This prototype is exposed on the realm's global ImmutableSet.prototype.