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

10 lines
142 B
JavaScript

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