Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

is-regexp.js 451B

12345678910111213
  1. 'use strict';
  2. var isObject = require('../internals/is-object');
  3. var classof = require('../internals/classof-raw');
  4. var wellKnownSymbol = require('../internals/well-known-symbol');
  5. var MATCH = wellKnownSymbol('match');
  6. // `IsRegExp` abstract operation
  7. // https://tc39.es/ecma262/#sec-isregexp
  8. module.exports = function (it) {
  9. var isRegExp;
  10. return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
  11. };