lix-website/themes/lix/assets/bootstrap/node_modules/is-regexp/index.d.ts

21 lines
296 B
TypeScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
/**
Check if a value is a regular expression.
@example
```
import isRegexp = require('is-regexp');
isRegexp('unicorn');
//=> false
isRegexp(/unicorn/);
//=> true
isRegexp(new RegExp('unicorn'));
//=> true
```
*/
declare function isRegexp(input: unknown): input is RegExp;
export = isRegexp;