UNPKG

@thepassle/axobject-query

Version:

Programmatic access to information about the AXObject Model

22 lines (21 loc) 529 B
function iteratorProxy() { const values = this; let index = 0; const iter = { "@@iterator": function () { return iter; }, next: function () { if (index < values.length) { const value = values[index]; index = index + 1; return { done: false, value }; } else { return { done: true, value: undefined }; } }, }; return iter; } export default iteratorProxy;