{"ScriptPreparationCode":"function createObjectsArray(n) {\r\n\tlet arr = [];\r\n \tconst salt=(Math.random() \u002B \u0027\u0027).slice(2,3);\r\n \twhile(n \u003E 0) {\r\n \tarr.push({\r\n \tid: n\u002Bsalt,\r\n name: \u0027name\u0027 \u002B n \u002B salt\r\n })\r\n n--;\r\n }\r\n return arr;\r\n}\r\n//var listOfObjects_1 = [{id: 1, name: \u00271\u0027}, {id: 2, name: \u00272\u0027}, {id: 5, name: \u00275\u0027}]\r\nvar listOfObjects_1 = createObjectsArray(1000)\r\n//var listOfObjects_2 = [{id: 1, name: \u00271\u0027}, {id: 2, name: \u00272\u0027}, {id: 5, name: \u00274\u0027}]\r\nvar listOfObjects_2 = createObjectsArray(1000)","TestCases":[{"Name":"array filtering with some","Code":"listOfObjects_1.filter(selectedItem =\u003E\r\n listOfObjects_2.some(item =\u003E item.id === selectedItem.id)\r\n )\r\n","IsDeferred":false},{"Name":"array filtering with includes","Code":"var ids_1 = listOfObjects_1.map(o =\u003E o.id)\r\nlistOfObjects_2.filter(o =\u003E ids_1.includes(o.id))","IsDeferred":false}]}