結果 : take last element of array javascript