1var yourArray = [
2
3{Index: 1, Name: "Farley, Charley", EmployeeCode: "12", PaymentType: "Void", CheckDate: "01/04/2012"},
4{Index: 2, Name: "Farley, Charley", EmployeeCode: "12", PaymentType: "Void", CheckDate: "01/04/2012"},
5{Index: 3, Name: "Tarley, Charley", EmployeeCode: "12", PaymentType: "Void", CheckDate: "01/04/2012"}
6];
7
8 unique = [...new Set(yourArray.map(propYoureChecking => propYoureChecking.Name))];
9if (unique.length === 1) {
10console.log(unique);
11}
1
2const arrayOfObjCopy = [...arrayOfObj];
3
4Object.keys(arrayOfObjCopy).forEach((key) => {
5 arrayOfObjCopy[key] = JSON.stringify(arrayOfObjCopy[key]);
6 });
7
8const arrayOfObjhasDuplicates = uniq(arrayOfObjCopy).length != arrayOfObjCopy.length;
9