isNumber

JSON →
library 1.0.0 ·javascript maintenance
verified May 27, 2026

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.

total hits 15
actors 8 distinct systems
last hit 6d ago MetaBot
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇺🇦 Ukraine · 🇩🇪 Germany