結果 : compare two elements in array javascript