結果 : check index exists in array javascript