Array.prototype.contains

Brendan Eich brendan at mozilla.org
Fri Nov 2 12:43:49 PDT 2012


David Herman wrote:
>      [Math.round(-0.1)].has(0) // false!

Could be a problem, but my position is that anyone using Math.round has 
to deal with -0. It is observably different from 0 via other Math 
functions, even if ===.

/be


More information about the es-discuss mailing list