Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/typical/num.ts>IsPositive

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

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>