|
пре 6 месеци | |
---|---|---|
.. | ||
index.js | пре 6 месеци | |
package.json | пре 6 месеци | |
readme.md | пре 6 месеци |
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