This was a great article. This helped me with my project. I was using faker to create some data but faker created duplicate names in an array of objects, but the client didn't want any duplicates.
Worked perfectly Thanks!!
Still trying to understand the code though.
Gotta dig deeper with map and filter!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.