結果 : compare all elements in array javascript