Skip to content

Commit

Permalink
Update expection explanation 🐼
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Oct 2, 2018
1 parent 34e53b7 commit 488fe1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ isType('', String) // returns true
getType('') // returns 'String'
```

**Exception:**<br>
Checking for `isNumber` and `isDate` will return `false` if the payload is `NaN` or an invalid date.
#### Useful number & date exception:

Checking for `isNumber` and `isDate` will return `false` if the payload is `NaN` or an invalid date. This is done intentionally and especially useful when you need to check if numbers or dates are correct in your functions!

```js
isNumber(NaN) // returns false
Expand Down

0 comments on commit 488fe1a

Please sign in to comment.