{"ScriptPreparationCode":"var objArray = [{id: 1}, {id: 2}, {id: 3}, {id: 4}, {id: 5}, {id: 6}, {id: 7}, {id: 8}, {id: 9}, {id: 10}];\r\nvar idArray = [9,4,6];","TestCases":[{"Name":"filter","Code":"var filteredObjArray = objArray.filter(obj =\u003E idArray.includes(obj.id));","IsDeferred":false},{"Name":"flatMap","Code":"var filteredObjArray = idArray.flatMap(id =\u003E objArray.find(obj =\u003E obj.id === id) || []);","IsDeferred":false}]}