Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SymbolConstructor

Callable

  • __call(description?: string | number): symbol
  • Returns a new unique Symbol value.

    Parameters

    • Optional description: string | number

      Description of the new Symbol object.

    Returns symbol

Index

Properties

Methods

Properties

prototype

prototype: Symbol

A reference to the prototype.

Methods

for

  • for(key: string): symbol
  • 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

  • keyFor(sym: symbol): string | undefined
  • 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