You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
483 B

(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' }
]);
})));