1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Remove unused iter.chain()

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-06-02 09:13:39 -04:00
parent 5318ebdbd4
commit 58d2c04fae

View File

@ -233,18 +233,3 @@ export function every<T>(src: Iterable<T>, fn: (val: T) => any): boolean {
return true; return true;
} }
/**
* Takes two iterators and creates a new iterator over both in sequence.
* @param first The first iterable to iterate over
* @param second The second iterable to iterate over
*/
export function* chain<T>(first: Iterable<T>, second: Iterable<T>): Iterable<T> {
for (const item of first) {
yield item;
}
for (const item of second) {
yield item;
}
}