Node.js examples for Object:Object Type
Is object an regex
exports.isRegExp = function (obj) { return Object.prototype.toString.call(obj) === '[object RegExp]'; };