peach a19a732be8 commit message %!s(int64=2) %!d(string=hai) anos
..
index.d.ts a19a732be8 commit message %!s(int64=2) %!d(string=hai) anos
index.js a19a732be8 commit message %!s(int64=2) %!d(string=hai) anos
license a19a732be8 commit message %!s(int64=2) %!d(string=hai) anos
package.json a19a732be8 commit message %!s(int64=2) %!d(string=hai) anos
readme.md a19a732be8 commit message %!s(int64=2) %!d(string=hai) anos

readme.md

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

Related

  • is - Type check values

License

MIT © Sindre Sorhus