Function polySymbolFor

  • 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