結果 : last n elements of array javascript