結果 : typescript create function with generic