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

10 lines
142 B
Plaintext
Raw Normal View History

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