Skip to content

isRegExp

isRegExp(value): value is RegExp

Defined in: packages/core/src/guards/is-regexp.ts:10

Check if a value is a RegExp.

Realm-bound: a RegExp built in another realm (worker, iframe, vm context) is not recognised.

unknown

The value to check

value is RegExp

True if the value is a RegExp