Brendan Eich wrote:
Tab Atkins Jr. wrote:
IME they're ducktyped by the presence of forEach (this is far from
perfect).
> Length has nothing to do with iterability. What about generators?
I don't want to go looking anything up right now, but I have lots of
memories of things looking for the presence of "length" to denote an
array-like.
Array-like != iterable.
But I should have written
Array-like <: Iterable
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss