Date.prototype.toJSON

Douglas Crockford douglas at crockford.com
Fri Jun 19 15:54:57 PDT 2009


Douglas Crockford wrote:
> Date.prototype.toJSON should return null when the value of the date is 
> NaN.
> 
> new Date(NaN).toJSON() === null


More information about the es5-discuss mailing list