• Returns whether the given value is positive

    Parameters

    • Optionalvalue: number

      the number value to check

    Returns boolean

    whether the given value is positive

    isPositive(1);    // true
    isPositive(0); // false
    isPositive(-1); // false