結果 : typescript method vs function