• Returns whether the given value is negative

    Parameters

    • Optionalvalue: number

      the number value to check

    Returns boolean

    whether the given value is negative

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