Symbol.keyFor() gets the symbol key for a given symbol
pass the symbol to keyFor() and you get its key
local symbols are not in the runtime-wide registry
predefined symbols are not in the runtime-wide registry either
for non-Symbols throws an error
Required Knowledge
- `Symbol.for()` (Symbol)
Related Katas
Symbol
- basics
Symbol.for()Symbol.keyFor()
Difficulty Level
INTERMEDIATE
First Published
7 May 2015
Stats
4 tests to solve