結果 : check if array of objects have same value javascript