typeof is much faster than {}.toString()

Proof: http://jsperf.com/typeof-vs-instanceof-vs-object-prototype-tostring