{"ScriptPreparationCode":null,"TestCases":[{"Name":"filter then map v2","Code":"const counters = [\r\n {name: \u0027Average DL RB Quantity\u0027, id: 11, checked: false}\r\n, {name: \u0027Average UL RB Quantity\u0027, id: 10, checked: false}\r\n, {name: \u0027Average User Number\u0027, id: 6, checked: true}\r\n, {name: \u0027Data Volume (TB)\u0027, id: 21, checked: false}\r\n, {name: \u0027Downlink Traffic Volume\u0027, id: 4, checked: false}\r\n, {name: \u0027E-RAB Setup Success Rate\u0027, id: 15, checked: false}\r\n, {name: \u0027FL- DL Throughput Per User\u0027, id: 9, checked: false}\r\n, {name: \u0027FL- UL Throughput Per User\u0027, id: 8, checked: true}\r\n, {name: \u0027Inter-Frequency Handover Out Success Rate\u0027, id: 13, checked: false}\r\n, {name: \u0027Intra-Frequency Handover Out Success Rate\u0027, id: 12, checked: true}\r\n, {name: \u0027L.RRC.ConnReq.AttBB\u0027, id: 1, checked: false}\r\n, {name: \u0027L.RRC.ConnReq.Succ\u0027, id: 2, checked: true}\r\n, {name: \u0027Maximum User Number\u0027, id: 7, checked: false}\r\n, {name: \u0027RRC Setup Success Rate\u0027, id: 14, checked: true}\r\n, {name: \u0027S1-based handover success rate\u0027, id: 19, checked: false}\r\n, {name: \u0027Service Drop Rate\u0027, id: 16, checked: false}\r\n, {name: \u0027Success rate of S1-based handover preparations\u0027, id: 17, checked: false}\r\n, {name: \u0027Success rate of X2-based handover preparations\u0027, id: 18, checked: false}\r\n, {name: \u0027Uplink Resource Utilization Rate\u0027, id: 3, checked: false}\r\n, {name: \u0027Uplink Traffic Volume\u0027, id: 5, checked: false}\r\n, {name: \u0027X2-based handover success rate\u0027, id: 20, checked:false}]\r\n\r\ncounters\r\n .filter((counter) =\u003E counter.checked)\r\n .map((counter) =\u003E counter.id)","IsDeferred":false},{"Name":"reduce v2","Code":"const counters = [\r\n {name: \u0027Average DL RB Quantity\u0027, id: 11, checked: false}\r\n, {name: \u0027Average UL RB Quantity\u0027, id: 10, checked: false}\r\n, {name: \u0027Average User Number\u0027, id: 6, checked: true}\r\n, {name: \u0027Data Volume (TB)\u0027, id: 21, checked: false}\r\n, {name: \u0027Downlink Traffic Volume\u0027, id: 4, checked: false}\r\n, {name: \u0027E-RAB Setup Success Rate\u0027, id: 15, checked: false}\r\n, {name: \u0027FL- DL Throughput Per User\u0027, id: 9, checked: false}\r\n, {name: \u0027FL- UL Throughput Per User\u0027, id: 8, checked: true}\r\n, {name: \u0027Inter-Frequency Handover Out Success Rate\u0027, id: 13, checked: false}\r\n, {name: \u0027Intra-Frequency Handover Out Success Rate\u0027, id: 12, checked: true}\r\n, {name: \u0027L.RRC.ConnReq.AttBB\u0027, id: 1, checked: false}\r\n, {name: \u0027L.RRC.ConnReq.Succ\u0027, id: 2, checked: true}\r\n, {name: \u0027Maximum User Number\u0027, id: 7, checked: false}\r\n, {name: \u0027RRC Setup Success Rate\u0027, id: 14, checked: true}\r\n, {name: \u0027S1-based handover success rate\u0027, id: 19, checked: false}\r\n, {name: \u0027Service Drop Rate\u0027, id: 16, checked: false}\r\n, {name: \u0027Success rate of S1-based handover preparations\u0027, id: 17, checked: false}\r\n, {name: \u0027Success rate of X2-based handover preparations\u0027, id: 18, checked: false}\r\n, {name: \u0027Uplink Resource Utilization Rate\u0027, id: 3, checked: false}\r\n, {name: \u0027Uplink Traffic Volume\u0027, id: 5, checked: false}\r\n, {name: \u0027X2-based handover success rate\u0027, id: 20, checked:false}]\r\n\r\ncounters.reduce(\r\n (previousState, nextCounter) =\u003E\r\n nextCounter.checked\r\n ? [...previousState, nextCounter.id]\r\n : [...previousState],\r\n [],\r\n )","IsDeferred":false}]}