- From: Boris Zbarsky <notifications@github.com>
- Date: Tue, 07 Mar 2017 13:06:53 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 7 March 2017 21:07:40 UTC
> before they were broken for weird reasons The reason is simple: people couldn't agree on what forEach() and keys() and entries() should do for them, for the non-indexed-thing case. Specifically whether it should behave like ES Array (where did the indices come from?) or ES Set (but what if the values are not unique?). And yes, you can specify a pair iterator, and then you can explicitly choose which of the two behaviors you want, by picking whether your keys are integers or the same as your values.... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/291#issuecomment-284859101
Received on Tuesday, 7 March 2017 21:07:40 UTC