You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mahdi
0cb8d673d7
|
2 years ago | |
---|---|---|
.. | ||
index.js | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
readme.md
is-regexp
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