{"ScriptPreparationCode":"var arr1 = [7, 2, 4, 1, 9, 8, 6, 3, 5]\r\nvar arr2 = [3, 4, 1, 2];","TestCases":[{"Name":"filter unsorted","Code":"const result = arr1.filter(el =\u003E arr2.includes(el))","IsDeferred":false},{"Name":"lodash intersection unsort","Code":"const result = _.intersection(arr1, arr2)","IsDeferred":false},{"Name":"filter sorted","Code":"const sortedArr1 = arr1.sort()\r\nconst sortedArr2 = arr2.sort()\r\n\r\nconst result = sortedArr1.filter(el =\u003E sortedArr2.includes(el))","IsDeferred":false},{"Name":"lodash intersection sorted","Code":"const sortedArr1 = arr1.sort()\r\nconst sortedArr2 = arr2.sort()\r\n\r\nconst result = _.intersection(sortedArr1, sortedArr2)","IsDeferred":false}]}