Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

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

Examples

Example 1

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

Type Parameters

N1 extends number
N2 extends number
definition: N1 extends N2 ? true : LessThan<N1, N2>