Fix: do the change in the individual .md file

This commit is contained in:
Robert Mennell
2017-12-14 00:15:57 -08:00
parent d563b73b7d
commit 465935215f

View File

@ -2,6 +2,7 @@
Use `!isNaN` in combination with `parseFloat()` to check if the argument is a number.
Use `isFinite()` to check if the number is finite.
Use `Number()` to check if the coercion holds.
```js
const validateNumber = n => !isNaN(parseFloat(n)) && isFinite(n);