💾custom type name
JS ⟩ value ⟩ type ⟩ custom type name
class MyClass {
// ⭐️ custom type name
get [Symbol.toStringTag]() { return 'MyClass' }
}
typeName(new MyClass()) // "MyClass"
👉 see:typeName()
Last updated
Was this helpful?
JS ⟩ value ⟩ type ⟩ custom type name
class MyClass {
// ⭐️ custom type name
get [Symbol.toStringTag]() { return 'MyClass' }
}
typeName(new MyClass()) // "MyClass"
👉 see:typeName()
Last updated
Was this helpful?