結果 : remove object from array based on index javascript