結果 : typescript accept function as parameter