Fixed date check

`typeof new Date() === 'object'`