UNPKG

@yuler/is-regexp

Version:

Check if a value is a regular expression

4 lines (3 loc) 112 B
export default function isRegExp(value) { return Object.prototype.toString.call(value) === '[object RegExp]' }