forKey static method
- @Since.new('3.11')
- @JS('for')
- String key
Searches for an existing symbol in a runtime-wide symbol registry with the given key and returns it if found.
Otherwise, creates a new symbol with this key, adds it to the global registry, and returns it.
Implementation
@Since('3.11')
@JS('for')
external static JSSymbol forKey(String key);