Function isPositive

  • Checks if number is positive.

    Parameters

    • number: number

    Returns boolean

    Since

    1.0.0

    Example

    isPositive(2);
    // => true

    Example

    isPositive(0);
    // => true

    Example

    isPositive(-0);
    // => false

    Example

    isPositive(-2);
    // => false