Plato on Github
Report Home
node_modules/es5-ext/reg-exp/valid-reg-exp.js
Maintainability
78.11
Lines of code
8
Difficulty
7.70
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; var isRegExp = require('./is-reg-exp'); module.exports = function (x) { if (!isRegExp(x)) throw new TypeError(x + " is not a RegExp object"); return x; };