Checks if a given value is a non-empty string representation of a number.
The value to be checked.
Returns true if the value is a non-empty string representation of a number, otherwise false.
true
false
const result1 = isNum(123); // falseconst result2 = isNum("123"); // trueconst result3 = isNum("abc"); // false Copy
const result1 = isNum(123); // falseconst result2 = isNum("123"); // trueconst result3 = isNum("abc"); // false
Generated using TypeDoc
Checks if a given value is a non-empty string representation of a number.