Why does Array.from accept non-iterable arraylikes?
jason.orendorff at gmail.com
Wed Jun 26 15:12:21 PDT 2013
On Wed, Jun 26, 2013 at 5:10 PM, Jason Orendorff
<jason.orendorff at gmail.com> wrote:
> If JS were being designed green-field today, maybe some of us would
> make array.length a symbol, not because it's "meta" (meaning, it is
> used by some key builtins, notably including Function.prototype.apply)
> and not because programmers might want to write a function that
> accepts an argument that's either an arraylike object or a dictionary.
> Those cases *do* exist, but it's just not a problem. Making .length a
> symbol would be a mistake.
Oops, s/not because/because/g.
More information about the es-discuss