Fixing the JavaScript typeof operator | JavaScript, JavaScript…:

Object.prototype.toString.call(new Date); //"[object Date]"

 Clever, if nothing else.

Labels: ,