📅  最后修改于: 2022-03-11 14:48:17.786000             🧑  作者: Mango
const arrayOfObjCopy = [...arrayOfObj];
Object.keys(arrayOfObjCopy).forEach((key) => {
arrayOfObjCopy[key] = JSON.stringify(arrayOfObjCopy[key]);
});
const arrayOfObjhasDuplicates = uniq(arrayOfObjCopy).length != arrayOfObjCopy.length;