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:
parent
5318ebdbd4
commit
58d2c04fae
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user