How to select property in object in typescript

后端 未结 0 469
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-19 15:40

How can i select object property depending on what passed to function as a second argument?

interface Type{
  first:string;
  second:string;
}
function foo(ar         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题