Skip to main content
Module

x/fuzzy_octo_guacamole/mod.ts>Pattern.betweenBigInt

A playground for testing CI setup that deploys on Deno and NPM
Latest
variable Pattern.betweenBigInt
import { Pattern } from "https://deno.land/x/fuzzy_octo_guacamole@v5.0.1/mod.ts";
const { betweenBigInt } = Pattern;

P.bigint.between(min, max) matches bigint between min and max, equal to min or equal to max.

Read the documentation for P.bigint.between on GitHub

Examples

match(value) .with(P.bigint.between(0, 10), () => '0 <= numbers <= 10')

type

<input, min extends bigint, max extends bigint>(min: min, max: max) => GuardExcludeP<input, bigint, never>