angular/packages/core/test/util/iterable.ts
Michal Materowski 663d477cb0 refactor(core): remove duplicated code in change_detection_util (#45599)
Removes duplicated code in change_detection_util and reorganizes imports to use utils module.

PR Close #45599
2022-04-12 22:26:09 +00:00

20 lines
446 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {getSymbolIterator} from '@angular/core/src/util/symbol';
export class TestIterable {
list: number[];
constructor() {
this.list = [];
}
[getSymbolIterator()]() {
return (this.list as any)[getSymbolIterator()]();
}
}