wishthis/node_modules/is-regexp/index.js
2022-01-21 09:28:41 +01:00

4 lines
116 B
JavaScript

'use strict';
module.exports = function (re) {
return Object.prototype.toString.call(re) === '[object RegExp]';
};