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