結果 : typescript check if function exists in object