What's a good way to express typescript deep property access

前端 未结 0 336
闹比i
闹比i 2020-12-01 19:28

Trying to model the types for a function:

function getDeep (object, property) {
  return property.length <= 0 
    ? object 
    : getDeep(object[property[         


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