Removing Duplicates From an Array of Objects Using a Generic Utility
Using a generic key name, composite key, and more
In a previous article, we looked at how to remove duplicates from an array. This time we start from that code and try to encapsulate it into a generic utility.
Let’s first remember the solution we are going to use.