DEV Community

Discussion on: Using JavaScript Symbol.toStringTag for objects types description

Collapse
 
levideang29 profile image
LeviDeang29

Very interesting. How I wish this was a built-in feature.

Collapse
 
cherif_b profile image
Cherif Bouchelaghem

It is built-in you just need to override the Symbol.

Collapse
 
levideang29 profile image
LeviDeang29

No I mean built-in as in you don't have to code anything else, just do a user.toStringTag() and it'll return [object user].