Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ custom type name
class MyClass { // ⭐️ custom type name get [Symbol.toStringTag]() { return 'MyClass' } } typeName(new MyClass()) // "MyClass"
👉 see:typeName()
⭐️ - accessed internally by .
⟩
⭐️
typeName()