UNPKG

237 BJavaScriptView Raw
1'use strict';
2// `GetIteratorDirect(obj)` abstract operation
3// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
4module.exports = function (obj) {
5 return {
6 iterator: obj,
7 next: obj.next,
8 done: false
9 };
10};