{"ScriptPreparationCode":"var fromIdVanilla = (id) =\u003E {\r\n const map = new Map()\r\n\r\n if (id) {\r\n for (const segement of id.split(\u0027;\u0027)) {\r\n const [key, value] = segement.split(\u0027=\u0027)\r\n map.set(key, value)\r\n }\r\n }\r\n\r\n return map\r\n}\r\n\r\nvar fromIdRamda = R.pipe(R.split(\u0027;\u0027), R.reject(R.isEmpty), R.map(R.split(\u0027=\u0027)), x =\u003E new Map(x))","TestCases":[{"Name":"Vanilla","Code":"fromIdVanilla(\u0027Type=Text;Id=1;Foo=Bar\u0027)","IsDeferred":false},{"Name":"Ramda","Code":"fromIdRamda(\u0027Type=Text;Id=1;Foo=Bar\u0027)","IsDeferred":false}]}