結果 : how to check if an array of objects has duplicate values in javascript