{"ScriptPreparationCode":"var arr = [1, 2, 3, 4, 5]\r\nvar obj = {\r\n [1]: \u0027a\u0027,\r\n [2]: \u0027b\u0027,\r\n [3]: \u0027c\u0027,\r\n [4]: \u0027d\u0027,\r\n [5]: \u0027e\u0027\r\n}\r\nvar test = (val) =\u003E {\r\n switch (val) {\r\n case 1:\r\n return \u0027a\u0027;\r\n case 2:\r\n return \u0027b\u0027;\r\n case 3:\r\n return \u0027c\u0027;\r\n case 4:\r\n return \u0027d\u0027;\r\n case 5:\r\n return \u0027e\u0027;\r\n default:\r\n return \u0027\u0027;\r\n }\r\n}","TestCases":[{"Name":"object map","Code":"const val = arr.at(Math.floor(Math.random() * 5))\r\n\r\nconst rt = obj[val]","IsDeferred":false},{"Name":"switch","Code":"const val = arr.at(Math.floor(Math.random() * 5))\r\n\r\n\r\ntest(val)","IsDeferred":false}]}