update snippets 0-All

This commit is contained in:
Stefan Feješ
2017-12-25 14:49:52 +01:00
committed by Agamemnon Zorbas
parent 39164e9cbf
commit e7e687f60c
33 changed files with 166 additions and 74 deletions

View File

@ -8,5 +8,8 @@ Use `Number()` to check if the coercion holds.
```js
const validateNumber = n => !isNaN(parseFloat(n)) && isFinite(n) && Number(n) == n;
// validateNumber('10') -> true
```
```js
validateNumber('10') -> true
```