|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
401 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * Checks if `value` is a RegExp.
|
|---|
| 3 | *
|
|---|
| 4 | * @param {any} value The value to check.
|
|---|
| 5 | * @returns {boolean} Returns `true` if `value` is a RegExp, `false` otherwise.
|
|---|
| 6 | *
|
|---|
| 7 | * @example
|
|---|
| 8 | * const value1 = /abc/;
|
|---|
| 9 | * const value2 = '/abc/';
|
|---|
| 10 | *
|
|---|
| 11 | * console.log(isRegExp(value1)); // true
|
|---|
| 12 | * console.log(isRegExp(value2)); // false
|
|---|
| 13 | */
|
|---|
| 14 | declare function isRegExp(value?: any): value is RegExp;
|
|---|
| 15 |
|
|---|
| 16 | export { isRegExp };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.