(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory() : typeof define === 'function' && define.amd ? define(factory) : (factory()); }(this, (function () { 'use strict'; const items = [{}, {}, {}]; for ( const a of items.children ) { a.foo = 'a'; } let c; for ( c of items.children ) { c.bar = 'c'; } assert.deepEqual( items, [ { foo: 'a', bar: 'c' }, { foo: 'a', bar: 'c' }, { foo: 'a', bar: 'c' } ]); })));