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