{"ScriptPreparationCode":"var participants = {\r\n \u002214395101\u0022: {\r\n \u0022hidden\u0022: false,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n },\r\n \u002224580932\u0022: {\r\n \u0022hidden\u0022: true,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n },\r\n \u002231245789\u0022: {\r\n \u0022hidden\u0022: false,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n },\r\n \u002249801234\u0022: {\r\n \u0022hidden\u0022: true,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n },\r\n \u002256710248\u0022: {\r\n \u0022hidden\u0022: false,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n },\r\n \u002262378901\u0022: {\r\n \u0022hidden\u0022: true,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n },\r\n \u002278549210\u0022: {\r\n \u0022hidden\u0022: false,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n },\r\n \u002284792154\u0022: {\r\n \u0022hidden\u0022: true,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n },\r\n \u002291234560\u0022: {\r\n \u0022hidden\u0022: false,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n },\r\n \u002210345678\u0022: {\r\n \u0022hidden\u0022: true,\r\n \u0022notificationPreference\u0022: \u0022always\u0022\r\n }\r\n};","TestCases":[{"Name":"Object.entries \u002B filtering","Code":"let participantsEntries = Object.entries(participants);\r\nconst currentUserAccountID = 13;\r\nparticipantsEntries.filter(([accountID, participant]) =\u003E {\r\n if (Number(accountID) === currentUserAccountID) {\r\n return false;\r\n }\r\n\r\n if (participant.hidden) {\r\n return false;\r\n }\r\n\r\n return true;\r\n });","IsDeferred":false},{"Name":"Object.keys \u002B filtering","Code":"let participantsIDs = Object.keys(participants).map(Number);\r\nconst currentUserAccountID = 13;\r\nparticipantsIDs.filter((accountID) =\u003E {\r\n if (accountID === currentUserAccountID) {\r\n return false;\r\n }\r\n\r\n if (participants[accountID].hidden) {\r\n return false;\r\n }\r\n\r\n return true;\r\n });","IsDeferred":false}]}