Get a JavaScript array with unique values
Get a JavaScript array with unique values

As I need to update an array in Firestore with duplicate-free values, let's summarise the methods I found and see how they perform.