{"ScriptPreparationCode":"const participants = [\r\n{\r\n name: \u0027Nichole\u0027,\r\n email: \u0027nichole@bla.com\u0027,\r\n },\r\n {\r\n name: \u0027Edgar\u0027,\r\n email: \u0027edgar@bla.com\u0027,\r\n },\r\n {\r\n name: \u0027Pablo\u0027,\r\n email: \u0027pablo@bla.com\u0027,\r\n },\r\n\r\n ];\r\n\r\nconst EXCLUDE = \u0027pablo@bla.com\u0027;","TestCases":[{"Name":"filter.map","Code":"const participants = [\r\n{\r\n name: \u0027Nichole\u0027,\r\n email: \u0027nichole@bla.com\u0027,\r\n },\r\n {\r\n name: \u0027Edgar\u0027,\r\n email: \u0027edgar@bla.com\u0027,\r\n },\r\n {\r\n name: \u0027Pablo\u0027,\r\n email: \u0027pablo@bla.com\u0027,\r\n },\r\n\r\n ];\r\n\r\nconst EXCLUDE = \u0027pablo@bla.com\u0027;\r\n\r\nparticipants.filter(\r\n d =\u003E d.email !== EXCLUDE\r\n).map((p, i) =\u003E ({\r\n ...p,\r\n signingOrder: i \u002B 1,\r\n}))","IsDeferred":false},{"Name":"reduce","Code":"const participants = [\r\n{\r\n name: \u0027Nichole\u0027,\r\n email: \u0027nichole@bla.com\u0027,\r\n },\r\n {\r\n name: \u0027Edgar\u0027,\r\n email: \u0027edgar@bla.com\u0027,\r\n },\r\n {\r\n name: \u0027Pablo\u0027,\r\n email: \u0027pablo@bla.com\u0027,\r\n },\r\n\r\n ];\r\n\r\nconst EXCLUDE = \u0027pablo@bla.com\u0027;\r\n\r\nparticipants.reduce((accum, item) =\u003E {\r\n if (item.email !== EXCLUDE) {\r\n accum.push({\r\n ...item,\r\n signingOrder: accum.length \u002B 1,\r\n });\r\n }\r\n return accum;\r\n}, []);","IsDeferred":false}]}