結果 : javascript check if all elements in array are the same