From 488fe1a4c46fdc95157d51b56c9748fba625f807 Mon Sep 17 00:00:00 2001 From: Luca Ban - Black Birdy Date: Tue, 2 Oct 2018 17:20:03 +0900 Subject: [PATCH] =?UTF-8?q?Update=20expection=20explanation=20=F0=9F=90=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9af60ec..a9b221e 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,9 @@ isType('', String) // returns true getType('') // returns 'String' ``` -**Exception:**
-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