const arrayOfObjCopy = [...arrayOfObj]; Object.keys(arrayOfObjCopy).forEach((key) => { arrayOfObjCopy[key] = JSON.stringify(arrayOfObjCopy[key]); }); const arrayOfObjhasDuplicates = uniq(arrayOfObjCopy).length != arrayOfObjCopy.length;