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

x/rimbu/typical/num.ts>GreaterThan

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

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>