Class Frozen
Index
Constructors
Methods
Methods
Static
Map
Static
Set
- Set<T>(data?: Iterable<T>): ReadonlySet<T>
Type Parameters
Returns ReadonlySet<T>
A strictly ReadonlySet.
Static
MapStatic
SetA strictly ReadonlySet.
Provides strictly readonly collections at runtime including ReadonlyMap and ReadonlySet.
The protection level provided is for accidental modification. A determined caller could still mutate via
Map.prototype.set.call(frozenMap, ...)
orSet.prototype.add.call(frozenSet, ...)
.