1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 10:52:47 +00:00
Files
mywebsite/node_modules/es5-ext/reg-exp/is-reg-exp.js

10 lines
198 B
JavaScript

'use strict';
var toString = Object.prototype.toString
, id = toString.call(/a/);
module.exports = function (x) {
return (x && (x instanceof RegExp || (toString.call(x) === id))) || false;
};