{"ScriptPreparationCode":"var obj = { messages: [\r\n {\r\n \u0022read\u0022: true,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n },\r\n {\r\n \u0022read\u0022: true,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n },\r\n {\r\n \u0022read\u0022: true,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n },\r\n {\r\n \u0022read\u0022: true,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n },\r\n {\r\n \u0022read\u0022: true,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n },\r\n {\r\n \u0022read\u0022: true,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n },\r\n {\r\n \u0022read\u0022: true,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n },\r\n {\r\n \u0022read\u0022: true,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n },\r\n {\r\n \u0022read\u0022: true,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n },\r\n {\r\n \u0022read\u0022: false,\r\n \u0022message\u0022: \u0022testing this message\u0022,\r\n \u0022other_prop\u0022: null,\r\n \u0022type\u0022: \u0022customer_message\u0022\r\n } \r\n] }","TestCases":[{"Name":"Map","Code":"let newObj = { messages: []};\r\nnewObj.messages = Object.assign([], obj.messages.map(m =\u003E { return m.read ? m : Object.assign({}, m, { read: true });}));","IsDeferred":false},{"Name":"FilterMap","Code":"let newObj = { messages: []};\r\nnewObj.messages = Object.assign([], obj.messages.filter(m =\u003E {return m.read === false}).map(m =\u003E { return m.read ? m : Object.assign({}, m, { read: true });}));","IsDeferred":false}]}