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