hz-zhhq-web/node_modules/is-regexp
zzyuan 03ac614884 前端提交3 2025-02-25 13:45:28 +08:00
..
index.js 前端提交3 2025-02-25 13:45:28 +08:00
package.json 前端提交3 2025-02-25 13:45:28 +08:00
readme.md 前端提交3 2025-02-25 13:45:28 +08:00

readme.md

is-regexp Build Status

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