Checks if a Number is negative
Returns true if number is < 0
true
< 0
const result = isNegative(-1);console.log(result); // true
true if the Number is less than 0, otherwise false
0
false
Rest
Generated using TypeDoc
Checks if a Number is negative
Example
Returns
trueif number is< 0Returns
trueif the Number is less than0, otherwisefalse