Jussi Kalliokoski (2012-08-28T09:10:10.000Z)
domenic at domenicdenicola.com (2014-01-03T16:44:15.134Z)
True, but I'd rather see `Array.create` as a fix for the "one argument Array constructor", i.e. creating an array of the specified length, without holes. For example: ```js Array.create = function (length) { if (length === 1) return [undefined] return Array.apply(null, Array(length)) } ``` There's been some discussion of that earlier, actually [1]. My 2 cents goes to `Array.fromElements`, conveys very well what it does. However, I'm still not quite sure what the use case is for this. For code generation, if you know how many elements there are and what they are enough to put them in the `Array.of(...,...,...)` call, why not just use `[...,...,...]`? Unless it's supposed to be used for converting array-likes to arrays, where I really don't think this is the best function signature. For the dart example, why not just use `[]` and you avoid the gotcha? [1]: https://mail.mozilla.org/pipermail/es-discuss/2012-July/023974.html