Typescript generics - is “extends object” pointless? What is the best practice?

前端 未结 0 1062
不知归路
不知归路 2021-01-29 04:16

I\'ve noticed that

generic is usually pointless because basically everything in javascript is an object. A literal is an object with .toStr

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