結果 : check if array of objects has duplicate values javascript