(date)
| 1 | 'use strict'; |
| 2 | |
| 3 | function isValidDate(date) { |
| 4 | // Taken from http://stackoverflow.com/a/12372720/1562178 |
| 5 | // If getTime() returns NaN it'll return false anyway |
| 6 | return date.getTime() === date.getTime(); |
| 7 | } |
| 8 | |
| 9 | module.exports = { |
| 10 | isValidDate |
no outgoing calls
no test coverage detected
searching dependent graphs…