[Bug 26973] make iterable declarations' iterator prototype objects inherit from %IteratorPrototype%

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26973

--- Comment #5 from Brendan Eich <brendan@mozilla.org> ---
(In reply to Cameron McCormack from comment #4)
> This would mean that you would write things like:
> 
>   myMap.keys().filter((x) => x > 10)
> 
> yeah?  To make it a little easier to type than:
> 
>   [...myMap.keys()].filter((x) => x > 10)

Yes, and more efficient too.

(BTW the single-parameter arrow function form does not need parens around the
formal parameter: x => x > 10 -- just passing this along in case it needs some
publicity. ;-)

/be

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Sunday, 5 October 2014 16:21:16 UTC