UNPKG

validatees

Version:

✅ Validation library for ES6+ modules

12 lines (11 loc) 442 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isRegExp = void 0; function isRegExp(value) { return (Object.prototype.toString.call(value) === "[object RegExp]" || value instanceof RegExp || "[object VRegExp]" === Object.prototype.toString.call(value) || "[object RegExp]" === Object.prototype.toString.call(value)); } exports.isRegExp = isRegExp; exports.default = isRegExp;