Check out example codes for "c# distinct array of objects by values". It will help you in understanding the concepts better.

Code Example 1

var uniquePersons = persons.GroupBy(p => p.Email)
                           .Select(grp => grp.First())
                           .ToArray();

Learn ReactJs, React Native from akashmittal.com