Ok that’s a fair point and, actually, I hadn’t noticed that the original post use-case was using User-input values here…

(as I said, whenever I use this, or similar, I always use object arrays, and ensure each object has a unique ID property, to avoid such issues).

But as the use-case here involves texts entered directly by the User then yes, any solution will need to ensure each text item is unique (or include some other way to deal with duplicate items).

1 Like