|
|
hace 3 años | |
|---|---|---|
| .. | ||
| index.js | hace 3 años | |
| package.json | hace 3 años | |
| readme.md | hace 3 años | |
Check whether a variable is a regular expression
$ npm install --save is-regexp
var isRegexp = require('is-regexp');
isRegexp('unicorn');
//=> false
isRegexp(/unicorn/);
//=> true
isRegexp(new RegExp('unicorn'));
//=> true
MIT © Sindre Sorhus