Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/typical/num.ts>GreaterThanOrEqual

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

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