ES6 rest operator is returning an error in Angular when used as a property

前端 未结 0 1845
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 05:14

public [...first10] = this.fibonacci(10);

console.log(first10);

error: (TS) Unexpected token.

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