{"ScriptPreparationCode":null,"TestCases":[{"Name":"Count","Code":"var data = [6, 1, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 5, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 8];\r\nvar cnt = {};\r\ndata.forEach(d =\u003E cnt[d] ? cnt[d]\u002B\u002B : cnt[d]=1);\r\ndata.filter(d =\u003E cnt[d] \u003E 1);","IsDeferred":false},{"Name":"IndexOf","Code":"var data = [6, 1, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 5, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3, 1, 3, 8];\r\ndata.filter(d =\u003E data.indexOf(d) != data.lastIndexOf(d));","IsDeferred":false}]}