Node.js examples for Object:Object Type
Is object regex expression
function isRegExp(re) { return isObject(re) && objectToString(re) === '[object RegExp]'; }