I have array of dictionary. If duplicate data is present in the array of dictionary then a flag to be raised with the element name which is duplicate.
The array of dictionary is below:
[[project_code: 1, lob: lob_1], [project_code: 1, lob: lob_1], [project_code: 2, lob: lob_1], [project_code: 3, lob: lob_1]]
Here we need to loop through and find if same project_code and lob is same, then it would return which all project_code which are duplicate.
Duplicate data means the pair of project_code and lob value should be same.
In the above array, if we go through then it should return project_code : 1
If anyone can write a code in Swift ..
Thanks in Advance.