Skip to main content
Module

x/rimbu/typical/mod.ts>Num.GreaterThanOrEqual

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Num.GreaterThanOrEqual
import { type Num } from "https://deno.land/x/rimbu@0.12.3/typical/mod.ts";
const { GreaterThanOrEqual } = Num;

Returns true if the given first natural number is greater or equal than the second. Returns never otherwise.

Examples

Example 1

GreaterThanOrEqual<15, 12> => true
GreaterThanOrEqual<15, 6> => never

Type Parameters

N1 extends number
N2 extends number
definition: Subtract<N1, N2> extends never ? false : true