mahdi 0cb8d673d7 update 3 years ago
..
index.js update 3 years ago
package.json update 3 years ago
readme.md update 3 years ago

readme.md

is-regexp Build Status

Check whether a variable is a regular expression

Install

$ npm install --save is-regexp

Usage

var isRegexp = require('is-regexp');

isRegexp('unicorn');
//=> false

isRegexp(/unicorn/);
//=> true

isRegexp(new RegExp('unicorn'));
//=> true

License

MIT © Sindre Sorhus