結果 : remove array based on index javascript