Last updated 2 years ago
Was this helpful?
JS ⟩ value ⟩ type ⟩ type name
typeof operator
baseTypeName()
typeName() - refined version of typeof.
- how to define a custom type name for a .
Symbol.toStringTag is accessed internally by the Object.prototype.toString() method.
Object.prototype.toString()
typeof ⟩
real-world usage
custom method that gets a more specific type ⭐️
⭐️
typeName()