I have the following array.var arr = [1,0,2]; I would like to remove the last element i.e. 2.I used arr.slice(-1); but it doesn't remove the value.
確定! 回上一頁