Checks if the given value is a RegExp (opens in a new tab) object.
Syntax
import { isRegEx } from '@opentf/std';
isRegEx(value: unknown): boolean;
Examples
isRegEx(new RegExp()) //=> true
isRegEx(/\d+/) //=> true
isRegEx({}) //=> false
Checks if the given value is a RegExp (opens in a new tab) object.
import { isRegEx } from '@opentf/std';
isRegEx(value: unknown): boolean;
isRegEx(new RegExp()) //=> true
isRegEx(/\d+/) //=> true
isRegEx({}) //=> false