3 ms·
TLDR if you only add objects to an array that are already not contained in said array you won't have to iterate back through it to remove the duplicates you cre
by tcdent 1y ago
TLDR if you only add objects to an array that are already not contained in said array you won't have to iterate back through it to remove the duplicates you created.
wild that this a pattern like this would be part of git-core, but I guess we all overlook stuff on a regular basis