Created
April 20, 2015 09:52
-
-
Save shivenigma/c22dd5b456ac68a4d49f to your computer and use it in GitHub Desktop.
cheking whether the given objects are valid date objects in javascript
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
if(Object.prototype.toString.call(ref.leave.fromDate) === "[object Date]" | |
&& Object.prototype.toString.call(ref.leave.toDate) === "[object Date]") | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment