{"ScriptPreparationCode":null,"TestCases":[{"Name":"indexOf","Code":"var first = [ 1, 2, 3, 4, 5 ];\r\nvar second = [ 4, 5, 6 ];\r\n \r\nvar difference = first.filter(x =\u003E second.indexOf(x) === -1);\r\nconsole.log(difference);","IsDeferred":false},{"Name":"includes","Code":"var first = [ 1, 2, 3, 4, 5 ];\r\nvar second = [ 4, 5, 6 ];\r\n \r\nvar difference = first.filter(x =\u003E !second.includes(x));\r\nconsole.log(difference);\r\n \r\n/*\r\n Output: [ 1, 2, 3]\r\n*/\r\n","IsDeferred":false},{"Name":"Set objec","Code":"var first = [ 1, 2, 3, 4, 5 ];\r\nvar second = [ 4, 5, 6 ];\r\n \r\nvar b = new Set(second);\r\nvar difference = [...first].filter(x =\u003E !b.has(x));\r\n \r\nconsole.log(difference);","IsDeferred":false}]}