Is there a canonical way to define an abstract member in ECMAScript 6?

前端 未结 0 768
一个人的身影
一个人的身影 2020-12-23 00:10

Right now I use this:

class NeedsGroup {
  group () { throw new Error (\'The method is abstract.\'); }
}
相关标签:
回答
  • 消灭零回复
提交回复
热议问题