Sha256: 609658194e6973e81f8cea1db36151f23e7ec1b50228b49fcf98c909c31c73ed
Contents?: true
Size: 443 Bytes
Versions: 25
Compression:
Stored size: 443 Bytes
Contents
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.github.io/ecma262/#sec-isregexp module.exports = function (it) { var isRegExp; return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp'); };
Version data entries
25 entries across 25 versions & 7 rubygems