Library API
    Preparing search index...

    Function isNumeric

    • Tests if a value can be safely converted to a numeric value. Handles strings, numbers, and BigInts, verifying finite properties and valid formats.

      Parameters

      • Optionalstr: any

        The value to test

      Returns boolean

      True if the value can be evaluated numerically

      isNumeric('123'); // true
      isNumeric('abc'); // false