結果 : remove array element based on index javascript