|
12345678910111213141516171819202122232425262728293031 |
- # is-regexp [](https://travis-ci.org/sindresorhus/is-regexp)
-
- > Check whether a variable is a regular expression
-
-
- ## Install
-
- ```sh
- $ npm install --save is-regexp
- ```
-
-
- ## Usage
-
- ```js
- var isRegexp = require('is-regexp');
-
- isRegexp('unicorn');
- //=> false
-
- isRegexp(/unicorn/);
- //=> true
-
- isRegexp(new RegExp('unicorn'));
- //=> true
- ```
-
-
- ## License
-
- MIT © [Sindre Sorhus](http://sindresorhus.com)
|