{"ScriptPreparationCode":"var array1 = Array.from({length: 40}, () =\u003E Math.floor(Math.random() * 140));\r\nvar array2 = Array.from({length: 20}, () =\u003E Math.floor(Math.random() * 140));\r\nvar setFromArray1 = new Set(array1)\r\nvar setFromArray2 = new Set(array2)","TestCases":[{"Name":"Set.difference","Code":"const setDiff = setFromArray1.difference(setFromArray2)","IsDeferred":false},{"Name":"Array.filter","Code":"const arrayFilter = array1.filter(value =\u003E array2.indexOf(value))","IsDeferred":false},{"Name":"Array.filter with Set.has","Code":"const arrayFilterWithSetHas = array1.filter(value =\u003E setFromArray2.has(value))","IsDeferred":false}]}