Skip to main content
Module

x/is_what/dist/index.d.ts>isRegExp

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.
Go to Latest
function isRegExp
import { isRegExp } from "https://deno.land/x/is_what@v4.1.15/dist/index.d.ts";

Returns whether the payload is a regular expression (RegExp)

Parameters

payload: any

Returns

payload is RegExp