Date.prototype.toJSON

Douglas Crockford douglas at crockford.com
Fri Jun 19 15:31:20 PDT 2009


Date.prototype.toJSON should return null when the value of the date is null.

new Date(NaN) === null


More information about the es5-discuss mailing list