Is it possible to declare a typescript function which works on both numbers and bigints?

前端 未结 0 887
野性不改
野性不改 2020-12-14 04:30

In plain untyped Javascript, it\'s not so hard to write a function which can operate on either numbers or bigints, depending on the arguments which are passed in:



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