Blame view

node_modules/es5-ext/reg-exp/is-reg-exp.js 217 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
  "use strict";
  
  var objToString = Object.prototype.toString, id = objToString.call(/a/);
  
  module.exports = function (value) {
  	return (value && (value instanceof RegExp || objToString.call(value) === id)) || false;
  };