How to Find Duplicates in Nested Arrays of Objects A flexible algorithm that works for any depth of nesting