UNPKG

rocky

Version:

Full-featured, middleware-oriented, hackable HTTP and WebSocket proxy

4 lines (3 loc) 115 B
module.exports = function isRegExp (o) { return !!o && Object.prototype.toString.call(o) === '[object RegExp]' }