David Bruant (2013-12-26T09:58:40.000Z)
domenic at domenicdenicola.com (2014-01-06T14:20:50.847Z)
Le 26/12/2013 05:00, Rick Waldron a écrit : > The array-like part is for all of those objects that _won't_ have an > `@@iterator`, for one reason or another I must have missed these reasons. No `@@iterator` also means these objects cannot be iterated with via for-of loops by default and I can't think of a good reason for that for any of the listed (`arguments`, `NodeList`, arrays from different windows, typed arrays). Do you have a link to previous discussions on this topic or a summary if that can be explained quickly? > and for useful shimming in ES5 runtimes. Even if `Array.from` relies on `@@iterator` for runtimes with symbols, it doesn't prevent runtimes without symbols to embed the iterator logic in the `Array.from` source (which is exactly what your prolyfill does).