angular-docs-cn/modules/angular2/test/change_detection/iterable.es6

10 lines
142 B
JavaScript

export class TestIterable {
constructor() {
this.list = [];
}
[Symbol.iterator]() {
return this.list[Symbol.iterator]();
}
}