結果 : remove current index from array javascript