結果 : typescript first n elements of array