What about having a simple "is" method on all the main types?
http://jsfiddle.net/jiggliemon/BDEWf/2/

-Chase

Reply via email to