GoScrobble/web/node_modules/core-js-pure/internals/not-a-regexp.js

8 lines
194 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00: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;
};