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.IsNegative

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

Returns true if the given number is negative (< 0), false otherwise.

Examples

Example 1

IsNegative<9> => false
IsNegative<0> => false
IsNegative<-5> => true

Type Parameters

N extends number
definition: U.Not<IsNatural<N>>