8 lines
194 B
JavaScript
Raw Normal View History

2021-02-11 21:31:41 +08:00
var isRegExp = require('../internals/is-regexp');
module.exports = function (it) {
if (isRegExp(it)) {
throw TypeError("The method doesn't accept regular expressions");
} return it;
};