偶然发现了这段代码:
const { operator } = this;
来自https://github.com/ReactiveX/rxjs/blob/master/src/Observable.ts#L89
这是什么意思?
答案 0 :(得分:4)
const { operator, other } = this;
相当于
const operator = this.operator;
const other = this.other;
它是从ES6借来的,有the same feature。