lix-website/themes/lix/assets/bootstrap/node_modules/is-regexp/readme.md
2024-04-26 22:49:34 -06:00

540 B

is-regexp Build Status

Check if a value is a regular expression

Install

$ npm install is-regexp

Usage

const isRegexp = require('is-regexp');

isRegexp('unicorn');
//=> false

isRegexp(/unicorn/);
//=> true

isRegexp(new RegExp('unicorn'));
//=> true
  • is - Type check values

License

MIT © Sindre Sorhus