About Array.of()

Brendan Eich brendan at mozilla.org
Sun Aug 26 06:43:00 PDT 2012


Rick Waldron wrote:
> If you replace that by using Array.of(), you avoid this "gotcha"

That's right -- Array.of is an alternative constructor to use in 
preference to Array, on account of Array's heinous special-case for the 
one-numeric-argument case.

/be


More information about the es-discuss mailing list