{"ScriptPreparationCode":"var contacts = {\r\n \u0027a1@a.com\u0027: {id: 1},\r\n \u0027a2@a.com\u0027: {id: 2},\r\n \u0027a3@a.com\u0027: {id: 3},\r\n \u0027a4@a.com\u0027: {id: 4},\r\n \u0027a5@a.com\u0027: {id: 5},\r\n \u0027a6@a.com\u0027: {id: 6},\r\n \u0027a7@a.com\u0027: {id: 7},\r\n \u0027a8@a.com\u0027: {id: 8},\r\n \u0027a9@a.com\u0027: {id: 9},\r\n \u0027a10@a.com\u0027: {id: 10},\r\n}\r\n\r\nvar selectedItems = [1,3,7];","TestCases":[{"Name":"filter \u002B map","Code":"selectedItems = Object.values(contacts).map(contact =\u003E contact.id).filter(id =\u003E selectedItems.indexOf(id) === -1)\r\n","IsDeferred":false},{"Name":"forEach","Code":" Object.values(contacts).forEach((contact) =\u003E {\r\n if (selectedItems.indexOf(contact.id) === -1) {\r\n selectedItems.push(contact.id);\r\n\t}\r\n });","IsDeferred":false}]}