Skip to main content
Module

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

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

Returns true if the first given number is greater than the second.

Examples

Example 1

GreaterThan<5, 5> => false
GreaterThan<8, 5> => true
GreaterThan<3, 7> => false

Type Parameters

N1 extends number
N2 extends number
definition: N1 extends N2 ? false : GreaterThanOrEqual<N1, N2>