mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-07 19:40:07 +08:00
11 lines
274 B
JavaScript
11 lines
274 B
JavaScript
|
|
var global = require('../internals/global');
|
||
|
|
var isRegExp = require('../internals/is-regexp');
|
||
|
|
|
||
|
|
var TypeError = global.TypeError;
|
||
|
|
|
||
|
|
module.exports = function (it) {
|
||
|
|
if (isRegExp(it)) {
|
||
|
|
throw TypeError("The method doesn't accept regular expressions");
|
||
|
|
} return it;
|
||
|
|
};
|