import { isBigInt } from "https://deno.land/x/unknownutil@v3.16.1/is.ts";
Return true
if the type of x
is bigint
.
import { is } from "https://deno.land/x/unknownutil@v3.16.1/mod.ts";
const a: unknown = 0n;
if (is.BigInt(a)) {
// a is narrowed to bigint
const _: bigint = a;
}