typeof
Small node.js module that dramatically extends functionality of native typeof
Inspired by Batman.js typeOf util
UPD: now it returns lowercased name of any javascript class. Thanks to @BallBearing for idea
Usage:
$ npm install typeof
var typeOf = ; console;// -> "string" console;// -> "array" console;// -> "null" console;// -> "buffer" { thisis = "class constructor" }console;// ->"myclass"