The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor filter duplicates util

Luna 994124d1 861b2f8e

+1 -9
+1 -9
utils/filter-duplicates.ts
··· 1 - export function filterDuplicates(strings: string[]): string[] { 2 - const uniqueStrings = new Set<string>(); 3 - 4 - strings.forEach((str) => { 5 - uniqueStrings.add(str); 6 - }); 7 - 8 - return Array.from(uniqueStrings); 9 - } 1 + export const filterDuplicates = (strings: string[]) => [...new Set(strings)]