TypeScript notation for both “is object” and non-null

前端 未结 0 353
名媛妹妹
名媛妹妹 2021-01-07 10:02

I have a utility function like this, mainly to get around the annoyance that typedef null is \'object\'.

export function isObject(a:         


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