{"ScriptPreparationCode":null,"TestCases":[{"Name":"spread operator","Code":"var arr = [\r\n {\r\n \u0022opportunityId\u0022: 5943111,\r\n \u0022findingList\u0022: [\r\n {\r\n \u0022findingId\u0022: 6919\r\n\t\t\t\t\t }\r\n\t\t\t\t],\r\n\t\t },\r\n\t\t {\r\n\t\t\t\t\u0022opportunityId\u0022: 5943111,\r\n \u0022findingList\u0022: [\r\n {\r\n \u0022findingId\u0022: 6918,\r\n\t\t\t\t\t\t \u0022findingId\u0022: 6917\r\n\t\t\t\t\t }\r\n\t\t\t\t]\r\n\t\t }\r\n]\r\n\r\narr.reduce((acc, findingInOpp) =\u003E [...acc, ...findingInOpp.findingList.map(({ findingId }) =\u003E findingId)],[])\r\n","IsDeferred":false},{"Name":"Push","Code":"var arr = [\r\n {\r\n \u0022opportunityId\u0022: 5943111,\r\n \u0022findingList\u0022: [\r\n {\r\n \u0022findingId\u0022: 6919\r\n\t\t\t\t\t }\r\n\t\t\t\t],\r\n\t\t },\r\n\t\t {\r\n\t\t\t\t\u0022opportunityId\u0022: 5943111,\r\n \u0022findingList\u0022: [\r\n {\r\n \u0022findingId\u0022: 6918,\r\n\t\t\t\t\t\t \u0022findingId\u0022: 6917\r\n\t\t\t\t\t }\r\n\t\t\t\t]\r\n\t\t }\r\n]\r\n\r\narr.reduce((acc, findingInOpp) =\u003E {\r\n \tfindingInOpp.findingList.forEach(({ findingId }) =\u003E acc.push(findingId))\r\n\treturn acc\r\n},[])","IsDeferred":false}]}