Type alias IsPositive<N>

IsPositive<N>: N extends N
    ? Numeric extends N
        ? boolean
        : `${N}` extends `-${Numeric}`
            ? false
            : true
    : never

Checks if a given numeric value is in [0,+∞[

Type Parameters

Returns

true if it is, otherwise false