isNumeric
Checks if the provided value is a numeric value (either a number type or a string that can be converted to a number).> isNumeric(num: number): boolean
- num: The value to check.
- Returns: `true` if the value is numeric, `false` otherwise.
Example
import { isNumeric } from "@explita/daily-toolset";
isNumeric(123); // true
isNumeric("456"); // true
isNumeric("abc"); // false
isNumeric(undefined); // false