-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed potential limitation in pull request #27
Not a bug but possibly a limitation for certain date formats.
- Loading branch information
1 parent
5cb73e7
commit 61119bb
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61119bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh whoops, I didn't realize
isNaN
returned false if a string is a number. Perhaps I should have done atypeof inDate === 'number'
check instead.