{"ScriptPreparationCode":"var array = [{x: 1, copy: true}, {y: 2, copy: false}, {z: 3, copy: true}, {u: 0, copy: true}, {v: -1, copy: true}, {w: -2, copy: false}];\r\nvar copy = array.map(item =\u003E Object.assign(item, {copy: false}));","TestCases":[{"Name":"slice","Code":"copy = array.slice(0);","IsDeferred":false},{"Name":"for loop","Code":"for (let i = 0; i \u003C array.length; i\u002B\u002B) {\r\n if (array[i].copy) {\r\n \tcopy[i] = array[i];\r\n }\r\n}","IsDeferred":false}]}