{"ScriptPreparationCode":null,"TestCases":[{"Name":"for-in","Code":"const List = [\r\n { id: \u0027111\u0027, Count: 2 },\r\n { id: \u0027222\u0027, Count: 2 },\r\n { id: \u0027333\u0027, Count: 2 },\r\n { id: \u0027323333\u0027, Count: 1 },\r\n { id: \u0027555111\u0027, Count: 1 },\r\n { id: \u0027700000\u0027, Count: 1 },\r\n { id: \u0027700001\u0027, Count: 1 },\r\n { id: \u0027900111\u0027, Count: 1 },\r\n { id: \u0027989222\u0027, Count: 1 },\r\n { id: \u0027999999\u0027, Count: 1 }\r\n];\r\nconst target = [{\u0022id\u0022:\u0022111\u0022,\u0022subject\u0022:\u0022SAMPLE\u0022,\u0022comments\u0022:10012},{},{\u0022id\u0022:\u0022333\u0022,\u0022subject\u0022:\u0022SAMPLE\u0022,\u0022comments\u0022:0},{},{},{},{},{},{},{}];\r\nconst xx =[];\r\nfor (let i = 0; i \u003C List.length; i\u002B=1){\r\n if(\u0027id\u0027 in target[i]){\r\n xx.push(Object.assign(target[i],List[i]))\r\n }\r\n}","IsDeferred":false},{"Name":"object.keys","Code":"const List = [\r\n { id: \u0027111\u0027, Count: 2 },\r\n { id: \u0027222\u0027, Count: 2 },\r\n { id: \u0027333\u0027, Count: 2 },\r\n { id: \u0027323333\u0027, Count: 1 },\r\n { id: \u0027555111\u0027, Count: 1 },\r\n { id: \u0027700000\u0027, Count: 1 },\r\n { id: \u0027700001\u0027, Count: 1 },\r\n { id: \u0027900111\u0027, Count: 1 },\r\n { id: \u0027989222\u0027, Count: 1 },\r\n { id: \u0027999999\u0027, Count: 1 }\r\n];\r\nconst target = [{\u0022id\u0022:\u0022111\u0022,\u0022subject\u0022:\u0022SAMPLE\u0022,\u0022comments\u0022:10012},{},{\u0022id\u0022:\u0022333\u0022,\u0022subject\u0022:\u0022SAMPLE\u0022,\u0022comments\u0022:0},{},{},{},{},{},{},{}];\r\nconst xx =[];\r\nfor (let i = 0; i \u003C List.length; i\u002B=1){\r\n if(Object.keys(target[i]).length){\r\n xx.push(Object.assign(target[i],List[i]))\r\n }\r\n}","IsDeferred":false}]}