Validation API
hasNum()
Validates that the passed arguments are numbers and not equal to 0.
- Accepts any arguments.
- Returns true if all provided arguments pass the validation, otherwise, returns false.
Example:
hasNum(1);
// true
hasNum(-1.5, 1.5);
// true
hasNum(0);
// false
hasNum(1, 0);
// false
hasNum(1, '1', [1]);
// false