2 ms·JavaScript already has this. It's called typeof.by bastawhiz 3y agoJavaScript already has this. It's called typeof.galaxyLogic 3y agoAnd instanceofjupp0r 3y agoTypescript purposefully influences this not at all.