refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
24
home/ags/node_modules/es-abstract/2018/IsRegExp.js
generated
vendored
24
home/ags/node_modules/es-abstract/2018/IsRegExp.js
generated
vendored
|
|
@ -1,24 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $match = GetIntrinsic('%Symbol.match%', true);
|
||||
|
||||
var hasRegExpMatcher = require('is-regex');
|
||||
|
||||
var ToBoolean = require('./ToBoolean');
|
||||
|
||||
// https://262.ecma-international.org/6.0/#sec-isregexp
|
||||
|
||||
module.exports = function IsRegExp(argument) {
|
||||
if (!argument || typeof argument !== 'object') {
|
||||
return false;
|
||||
}
|
||||
if ($match) {
|
||||
var isRegExp = argument[$match];
|
||||
if (typeof isRegExp !== 'undefined') {
|
||||
return ToBoolean(isRegExp);
|
||||
}
|
||||
}
|
||||
return hasRegExpMatcher(argument);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue