Skip to main content
Module

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

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

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

Examples

Example 1

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

Type Parameters

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