{"ScriptPreparationCode":"var a = [1,2,2,2,3,4,5,6,8,4,5,8,4,6,3,5];\r\nvar b = [2,4];","TestCases":[{"Name":"Best","Code":"function array_diff(a, b) {\r\n return a.filter(function(x) { return b.indexOf(x) == -1; });\r\n}","IsDeferred":false},{"Name":"Mine","Code":"function array_diff(a, b) {\r\n let arrStr = a.join(\u0027\u0027);\r\n b.forEach(function(item) {\r\n arrStr = arrStr.replace(new RegExp(item, \u0027g\u0027), \u0027\u0027);\r\n });\r\n \r\n return arrStr.split(\u0027\u0027).map(function(t){return parseInt(t)});\r\n}","IsDeferred":false}]}