import { isRegExp } from "https://deno.land/x/isx@1.0.0-beta.22/mod.ts";
Whether the value is RegExp
of not.
import { isRegExp } from "https://deno.land/x/isx@$VERSION/mod.ts";
import { assertEquals } from "https://deno.land/std@$VERSION/testing/asserts.ts";
assertEquals(isRegExp(new RegExp("")), true);
assertEquals(isRegExp({}), false);