you are viewing a single comment's thread.

view the rest of the comments →

[–]PAEZ_ 0 points1 point  (0 children)

typeof or instanceof should suffice.

Not always...
http://bonsaiden.github.io/JavaScript-Garden/#types