Interface SymbolConstructor
Hierarchy
- SymbolConstructor
Callable
-
Parameters
-
Optional description: string | number
Description of the new Symbol object.
Returns symbol
-
Index
Properties
prototype
A reference to the prototype.
Methods
for
-
Returns a Symbol object from the global symbol registry matching the given key if found. Otherwise, returns a new symbol with this key.
Parameters
-
key: string
key to search for.
Returns symbol
-
keyFor
-
Returns a key from the global symbol registry matching the given Symbol if found. Otherwise, returns a undefined.
Parameters
-
sym: symbol
Symbol to find the key for.
Returns string | undefined
-
Generated using TypeDoc
Returns a new unique Symbol value.