SheetXL - v0.3.20
    Preparing search index...
    • Checks if a given value can be parsed as a finite number.

      This function attempts to coerce the provided value into a number using parseAsNumber and then determines if the result is both finite and of type number. It filters out NaN, Infinity, -Infinity, and non-numeric types.

      Parameters

      • value: any

        The value to be checked.

      Returns boolean

      true if the value can be parsed as a finite number, false otherwise.

      isNumeric("123");        // true
      isNumeric("12.34"); // true
      isNumeric("12e5"); // true
      isNumeric("abc"); // false
      isNumeric(null); // false
      isNumeric(Infinity); // false