Is Numeric

Check if a string represents a valid number.

Code

General
!isNaN(str) && !isNaN(parseFloat(str));

Parameters

The string to check

Browser·fetch() may be limited by CORS

More JavaScript Snippets