• Returns whether the given value is not negative

    Parameters

    • Optionalvalue: number

      the number value to check

    Returns boolean

    whether the given value is not negative

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