forked from lix-project/lix-website
.. | ||
index.d.ts | ||
index.js | ||
license | ||
package.json | ||
readme.md |
is-regexp ![Build Status](https://travis-ci.org/sindresorhus/is-regexp.svg?branch=master)
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