Determines if the given number is odd.
This is null | undefined safe. If you pass null | undefined this will return false.
null | undefined
false
isOdd(null); // falseisOdd(1); // trueisOdd(4); // false Copy
isOdd(null); // falseisOdd(1); // trueisOdd(4); // false
Determines if the given number is odd.