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

x/rimbu/typical/num.ts>IsNegative

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

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