SyntaxFix
Write A Post
Hire A Developer
Questions
You can use constructor property:
'foo'.constructor == String // returns true true.constructor == Boolean // returns true