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

x/rimbu/typical/num.ts>LessThan

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

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