isNumber
JSON →The `isNumber` package provides a minimal, single-line utility function to determine if a value represents a finite number. Currently at version 1.0.0, this package is highly stable with an extremely infrequent release cadence, reflecting its narrow and well-defined scope (last published 13 years ago). Its key differentiator lies in its approach to type coercion: unlike `Number.isFinite()` which strictly checks the type, `isNumber` uses `parseFloat()` to first attempt to parse the input into a number. It then verifies that the parsed result is a finite number and not `NaN`. This makes it suitable for scenarios where number-like strings (e.g., "123.45") should be treated as valid numbers, but it also introduces specific behaviors for other complex types that are not strictly numbers or strings.
Traffic · last 30 days ↑0% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇺🇦 Ukraine · 🇩🇪 Germany