Skip to content

@yantrix/functions v0.0.2Docs


Yantrix API / @yantrix/functions / Predicates / isPositive

Function: isPositive()

ts
function isPositive(value): boolean | null

Checks if a number is positive.

Parameters

value: number

The number to check.

Returns

boolean | null

True if the number is positive, otherwise false. Returns null if the argument is not a number.