結果 : remove from array based on index javascript