Skip to main content
Module

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

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

Returns true if the given number is positive (> 0), false otherwise

Examples

Example 1

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

Type Parameters

N extends number
definition: GreaterThanOrEqual<N, 1>