This repository has been archived on 2026-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
todo/client/node_modules/is-regexp/readme.md

32 lines
477 B
Markdown
Raw Permalink Normal View History

2025-06-13 06:04:40 +00:00
# is-regexp [![Build Status](https://travis-ci.org/sindresorhus/is-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/is-regexp)
> Check whether a variable is a regular expression
## Install
```sh
$ npm install --save is-regexp
```
## Usage
```js
var isRegexp = require('is-regexp');
isRegexp('unicorn');
//=> false
isRegexp(/unicorn/);
//=> true
isRegexp(new RegExp('unicorn'));
//=> true
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)