結果 : get current array index javascript