{"ScriptPreparationCode":"filteredResults = [{ some: \u0027yes\u0027, profile: \u0027A\u0027}, { some: \u0027yes\u0027, profile: \u0027A\u0027}, { some: \u0027yes\u0027, profile: \u0027B\u0027}, { some: \u0027C\u0027, profile: \u0027B\u0027}, { some: \u0027yes\u0027, profile: \u0027B\u0027}]","TestCases":[{"Name":"Map \u0026 Set","Code":"const formattedProfiles = filteredResults.map(result =\u003E result.profile)\r\nconst uniqueProfiles = [...new Set(formattedProfiles)]","IsDeferred":false},{"Name":"Reduce \u0026 Includes","Code":"const formattedProfiles = filteredResults.reduce((uniqueProfiles, { profile }) =\u003E {\r\n return uniqueProfiles.includes(profile) ? uniqueProfiles : [...uniqueProfiles, profile];\r\n}, []);","IsDeferred":false}]}