first
This commit is contained in:
13
node_modules/core-js/internals/is-regexp.js
generated
vendored
Normal file
13
node_modules/core-js/internals/is-regexp.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
var isObject = require('../internals/is-object');
|
||||
var classof = require('../internals/classof-raw');
|
||||
var wellKnownSymbol = require('../internals/well-known-symbol');
|
||||
|
||||
var MATCH = wellKnownSymbol('match');
|
||||
|
||||
// `IsRegExp` abstract operation
|
||||
// https://tc39.es/ecma262/#sec-isregexp
|
||||
module.exports = function (it) {
|
||||
var isRegExp;
|
||||
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
||||
};
|
Reference in New Issue
Block a user