biofriction-wp-theme/node_modules/core-js/modules/_is-regexp.js

9 lines
289 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +02:00
// 7.2.8 IsRegExp(argument)
var isObject = require('./_is-object');
var cof = require('./_cof');
var MATCH = require('./_wks')('match');
module.exports = function (it) {
var isRegExp;
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
};