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

x/rimbu/typical/num.ts>Equal

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

Returns true if the given numbers are equal.

Examples

Example 1

Equal<0, 0> => true
Equal<8, 9> => false

Type Parameters

N1 extends number
N2 extends number
definition: N1 extends N2 ? N2 extends N1 ? true : false : false