Created
June 13, 2019 09:59
-
-
Save IOIO72/3909d28e68632767d22b047e01386cf2 to your computer and use it in GitHub Desktop.
Returns true or false depending on valid date object.
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
export const isValidDate = d => d instanceof Date && !isNaN(d); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment