結果 : typescript take first n elements of array