{"ScriptPreparationCode":"var allWorkspaces = [\r\n { id: \u0027id\u0027, name: \u0027name\u0027 },\r\n { id: \u0027id0\u0027, name: \u0027name0\u0027 },\r\n { id: \u0027id1\u0027, name: \u0027name1\u0027 },\r\n { id: \u0027id2\u0027, name: \u0027name2\u0027 },\r\n { id: \u0027id3\u0027, name: \u0027name3\u0027 },\r\n { id: \u0027id4\u0027, name: \u0027name4\u0027 },\r\n { id: \u0027id5\u0027, name: \u0027name5\u0027 },\r\n { id: \u0027id6\u0027, name: \u0027name6\u0027 },\r\n { id: \u0027id7\u0027, name: \u0027name7\u0027 },\r\n { id: \u0027id8\u0027, name: \u0027name8\u0027 },\r\n { id: \u0027id9\u0027, name: \u0027name9\u0027 },\r\n { id: \u0027id10\u0027, name: \u0027name10\u0027 },\r\n { id: \u0027id11\u0027, name: \u0027name11\u0027 },\r\n { id: \u0027id12\u0027, name: \u0027name12\u0027 },\r\n { id: \u0027id13\u0027, name: \u0027name13\u0027 },\r\n { id: \u0027id14\u0027, name: \u0027name14\u0027 },\r\n { id: \u0027id15\u0027, name: \u0027name15\u0027 },\r\n { id: \u0027id16\u0027, name: \u0027name16\u0027 },\r\n { id: \u0027id17\u0027, name: \u0027name17\u0027 },\r\n { id: \u0027id18\u0027, name: \u0027name18\u0027 },\r\n { id: \u0027id19\u0027, name: \u0027name19\u0027 },\r\n { id: \u0027id20\u0027, name: \u0027name20\u0027 },\r\n { id: \u0027id21\u0027, name: \u0027name21\u0027 },\r\n { id: \u0027id22\u0027, name: \u0027name22\u0027 },\r\n { id: \u0027id23\u0027, name: \u0027name23\u0027 },\r\n { id: \u0027id24\u0027, name: \u0027name24\u0027 },\r\n { id: \u0027id25\u0027, name: \u0027name25\u0027 },\r\n { id: \u0027id26\u0027, name: \u0027name26\u0027 },\r\n { id: \u0027id27\u0027, name: \u0027name27\u0027 },\r\n { id: \u0027id28\u0027, name: \u0027name28\u0027 },\r\n { id: \u0027id29\u0027, name: \u0027name29\u0027 },\r\n { id: \u0027id30\u0027, name: \u0027name30\u0027 },\r\n { id: \u0027id31\u0027, name: \u0027name31\u0027 },\r\n { id: \u0027id32\u0027, name: \u0027name32\u0027 },\r\n { id: \u0027id33\u0027, name: \u0027name33\u0027 },\r\n { id: \u0027id34\u0027, name: \u0027name34\u0027 },\r\n { id: \u0027id35\u0027, name: \u0027name35\u0027 },\r\n { id: \u0027id36\u0027, name: \u0027name36\u0027 },\r\n { id: \u0027id37\u0027, name: \u0027name37\u0027 },\r\n { id: \u0027id38\u0027, name: \u0027name38\u0027 },\r\n { id: \u0027id39\u0027, name: \u0027name39\u0027 },\r\n { id: \u0027id40\u0027, name: \u0027name40\u0027 },\r\n { id: \u0027id41\u0027, name: \u0027name41\u0027 },\r\n { id: \u0027id42\u0027, name: \u0027name42\u0027 },\r\n { id: \u0027id43\u0027, name: \u0027name43\u0027 },\r\n { id: \u0027id44\u0027, name: \u0027name44\u0027 },\r\n { id: \u0027id45\u0027, name: \u0027name45\u0027 },\r\n { id: \u0027id46\u0027, name: \u0027name46\u0027 },\r\n { id: \u0027id47\u0027, name: \u0027name47\u0027 },\r\n { id: \u0027id48\u0027, name: \u0027name48\u0027 },\r\n { id: \u0027id49\u0027, name: \u0027name49\u0027 },\r\n { id: \u0027id50\u0027, name: \u0027name50\u0027 },\r\n { id: \u0027id51\u0027, name: \u0027name51\u0027 },\r\n { id: \u0027id52\u0027, name: \u0027name52\u0027 },\r\n { id: \u0027id53\u0027, name: \u0027name53\u0027 },\r\n { id: \u0027id54\u0027, name: \u0027name54\u0027 },\r\n { id: \u0027id55\u0027, name: \u0027name55\u0027 },\r\n { id: \u0027id56\u0027, name: \u0027name56\u0027 },\r\n { id: \u0027id57\u0027, name: \u0027name57\u0027 },\r\n { id: \u0027id58\u0027, name: \u0027name58\u0027 },\r\n { id: \u0027id59\u0027, name: \u0027name59\u0027 },\r\n { id: \u0027id60\u0027, name: \u0027name60\u0027 },\r\n { id: \u0027id61\u0027, name: \u0027name61\u0027 },\r\n { id: \u0027id62\u0027, name: \u0027name62\u0027 },\r\n { id: \u0027id63\u0027, name: \u0027name63\u0027 },\r\n { id: \u0027id64\u0027, name: \u0027name64\u0027 },\r\n { id: \u0027id65\u0027, name: \u0027name65\u0027 },\r\n { id: \u0027id66\u0027, name: \u0027name66\u0027 },\r\n { id: \u0027id67\u0027, name: \u0027name67\u0027 },\r\n]\r\n\r\nvar selectedWorkspaces = [\r\n { id: \u0027id30\u0027, name: \u0027name30\u0027 },\r\n { id: \u0027id1\u0027, name: \u0027name1\u0027 },\r\n { id: \u0027id62\u0027, name: \u0027name62\u0027 },\r\n { id: \u0027id25\u0027, name: \u0027name25\u0027 },\r\n { id: \u0027id42\u0027, name: \u0027name42\u0027 },\r\n { id: \u0027id64\u0027, name: \u0027name64\u0027 },\r\n { id: \u0027id27\u0027, name: \u0027name27\u0027 },\r\n { id: \u0027id67\u0027, name: \u0027name67\u0027 },\r\n { id: \u0027id52\u0027, name: \u0027name52\u0027 },\r\n { id: \u0027id0\u0027, name: \u0027name0\u0027 },\r\n { id: \u0027id41\u0027, name: \u0027name41\u0027 },\r\n { id: \u0027id5\u0027, name: \u0027name5\u0027 },\r\n { id: \u0027id36\u0027, name: \u0027name36\u0027 },\r\n { id: \u0027id44\u0027, name: \u0027name44\u0027 },\r\n { id: \u0027id46\u0027, name: \u0027name46\u0027 },\r\n { id: \u0027id45\u0027, name: \u0027name45\u0027 },\r\n { id: \u0027id63\u0027, name: \u0027name63\u0027 },\r\n { id: \u0027id15\u0027, name: \u0027name15\u0027 },\r\n { id: \u0027id18\u0027, name: \u0027name18\u0027 },\r\n { id: \u0027id66\u0027, name: \u0027name66\u0027 },\r\n { id: \u0027id47\u0027, name: \u0027name47\u0027 },\r\n { id: \u0027id43\u0027, name: \u0027name43\u0027 },\r\n { id: \u0027id17\u0027, name: \u0027name17\u0027 },\r\n { id: \u0027id60\u0027, name: \u0027name60\u0027 },\r\n { id: \u0027id\u0027, name: \u0027name\u0027 },\r\n { id: \u0027id4\u0027, name: \u0027name4\u0027 },\r\n { id: \u0027id39\u0027, name: \u0027name39\u0027 },\r\n { id: \u0027id22\u0027, name: \u0027name22\u0027 },\r\n { id: \u0027id54\u0027, name: \u0027name54\u0027 },\r\n { id: \u0027id55\u0027, name: \u0027name55\u0027 },\r\n { id: \u0027id57\u0027, name: \u0027name57\u0027 },\r\n { id: \u0027id8\u0027, name: \u0027name8\u0027 },\r\n { id: \u0027id9\u0027, name: \u0027name9\u0027 },\r\n]","TestCases":[{"Name":"Lodash differenceBy","Code":"_.differenceBy(\r\n allWorkspaces,\r\n selectedWorkspaces,\r\n \u0027id\u0027,\r\n)","IsDeferred":false},{"Name":"javascript filter map","Code":"const workspacesIds = selectedWorkspaces.map((workspace) =\u003E workspace.id);\r\n\r\nallWorkspaces\r\n .filter((workspace) =\u003E !workspacesIds.includes(workspace.id))\r\n .map((workspace) =\u003E workspace.id);","IsDeferred":false},{"Name":"javascript reduce","Code":"const workspacesIds = new Set(selectedWorkspaces.map((workspace) =\u003E workspace.id));\r\n\r\nallWorkspaces.reduce((acc, workspace) =\u003E {\r\n\tif (!workspacesIds.has(workspace)) {\r\n \tacc.push(workspace)\r\n }\r\n \r\n return acc;\r\n}, [])","IsDeferred":false}]}