結果 : typescript take n elements of array