Set length property
Brendan Eich
brendan at mozilla.org
Tue Feb 14 19:10:58 PST 2012
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
More information about the es-discuss
mailing list