Skip to content

@yantrix/functions v0.5.2 • Docs


Yantrix API / @yantrix/functions / Predicates / isPositive

Function: isPositive() ​

ts
function isPositive(value): boolean

Checks if a number is positive.

Parameters ​

• value: number

The number to check.

Returns ​

boolean

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