.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / is-regexp / readme.md
1 # is-regexp [![Build Status](https://travis-ci.org/sindresorhus/is-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/is-regexp)
2
3 > Check whether a variable is a regular expression
4
5
6 ## Install
7
8 ```sh
9 $ npm install --save is-regexp
10 ```
11
12
13 ## Usage
14
15 ```js
16 var isRegexp = require('is-regexp');
17
18 isRegexp('unicorn');
19 //=> false
20
21 isRegexp(/unicorn/);
22 //=> true
23
24 isRegexp(new RegExp('unicorn'));
25 //=> true
26 ```
27
28
29 ## License
30
31 MIT © [Sindre Sorhus](http://sindresorhus.com)