Installation
npm install --save @types/is-regex
Summary
This package contains type definitions for is-regex (https://github.com/ljharb/is-regex).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-regex.
index.d.ts
/**
* Returns whether the value is a valid `RegExp` object with the `[[RegExpMatcher]]` internal slot.
*/
declare function isRegex(value: any): value is RegExp;
export = isRegex;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Jordan Harband, and ExE Boss.