Plato on Github
Report Home
node_modules/es5-ext/reg-exp/is-reg-exp.js
Maintainability
88.25
Lines of code
9
Difficulty
8.08
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
'use strict'; var toString = Object.prototype.toString , id = toString.call(/a/); module.exports = function (x) { return (x && (x instanceof RegExp || (toString.call(x) === id))) || false; };