2 ms·
The naming here comes from Mozilla's earlier implementation (https://developer.mozilla.org/en/JavaScript/Guide/Iterators_and_Generators https://developer.mozill
by munificent 16y ago
The naming here comes from Mozilla's earlier implementation (https://developer.mozilla.org/en/JavaScript/Guide/Iterators_and_Generators https://developer.mozilla.org/en/JavaScript/Guide/Iterators_...). Personally, I would have preferred iterate().
Traceur doesn't use the same Python-style semantics as Mozilla does: it doesn't throw an error to stop iteration. Instead, it's closer to Java or C# where moveNext() returns false if the iterator is done.