{"ScriptPreparationCode":"var infoEvents = {\r\n test1: [ \u0027test\u0027, \u0027test\u0027 ],\r\n test2: [ \u0027test\u0027, \u0027test\u0027 ],\r\n test3: [ \u0027hello\u0027, \u0027hi\u0027 ],\r\n test4: [ \u0027heheheheheheh\u0027, \u0027hahahahaha\u0027 ],\r\n test5: [ \u0027ba\u0027, \u0027boo\u0027 ]\r\n};\r\n\r\nvar exceptionEvents = {\r\n test1: [ \u0027test\u0027, \u0027test\u0027 ],\r\n test2: [ \u0027test\u0027, \u0027test\u0027 ],\r\n test3: [ \u0027hello\u0027, \u0027hi\u0027 ],\r\n test4: [ \u0027heheheheheheh\u0027, \u0027hahahahaha\u0027 ],\r\n test5: [ \u0027ba\u0027, \u0027boo\u0027 ]\r\n};","TestCases":[{"Name":"Native","Code":" function getEvents() {\r\n \r\n const eventNamesAndCategories = [ ...Object.values(infoEvents), ...Object.values(exceptionEvents) ];\r\n const eventNames = [],\r\n eventCategories = [];\r\n const seenCategories = new Set();\r\n\r\n eventNamesAndCategories.forEach( event =\u003E {\r\n eventNames.push(\u0060${event[1]}/${event[0]}\u0060);\r\n if (!seenCategories.has(event[1])) {\r\n eventCategories.push(event[1]);\r\n seenCategories.add(event[1]);\r\n }\r\n });\r\n \r\n return;\r\n}","IsDeferred":false},{"Name":"lodash","Code":"function getEvents() {\r\n const eventNamesAndCategories = [ ..._.map(infoEvents), ..._.map(exceptionEvents) ];\r\n const eventNames = _(eventNamesAndCategories).map(nc =\u003E \u0060${nc[1]}/${nc[0]}\u0060).uniq().value(),\r\n eventCategories = _(eventNamesAndCategories).map(nc =\u003E nc[1]).uniq().value();\r\n \r\n return;\r\n}","IsDeferred":false}]}