Skip to main content
Module

x/isx/mod.ts>isBigint

TypeScript-first is function collections
Go to Latest
function isBigint
import { isBigint } from "https://deno.land/x/isx@1.0.0-beta.20/mod.ts";

Whether the value is bigint or not.

Parameters

value: unknown
  • Any value.
import { isBigint } from "https://deno.land/x/isx@$VERSION/mod.ts"
import { assertEquals } from "https://deno.land/std@$VERSION/testing/asserts.ts"
assertEquals(isBigint(1000n), true)
assertEquals(isBigint(undefined), false)

Returns

value is bigint