{"ScriptPreparationCode":"var listOfObjects_1 = [{id: 1, name: \u00271\u0027}, {id: 2, name: \u00272\u0027}, {id: 5, name: \u00275\u0027}]\r\nvar listOfObjects_2 = [{id: 1, name: \u00271\u0027}, {id: 2, name: \u00272\u0027}, {id: 5, name: \u00274\u0027}]","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}]}