lix-website/themes/lix/assets/bootstrap/node_modules/is-regexp
2024-04-26 22:49:34 -06:00
..
index.d.ts initial commit of template 2024-04-26 22:49:34 -06:00
index.js initial commit of template 2024-04-26 22:49:34 -06:00
license initial commit of template 2024-04-26 22:49:34 -06:00
package.json initial commit of template 2024-04-26 22:49:34 -06:00
readme.md initial commit of template 2024-04-26 22:49:34 -06:00

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