Skip to content

Commit 144e9c6

Browse files
authored
readonly array in iterator reverse (microsoft#251965)
to be ported to copilot
1 parent d0026f3 commit 144e9c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/base/common/iterator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export namespace Iterable {
3232
return iterable || _empty;
3333
}
3434

35-
export function* reverse<T>(array: Array<T>): Iterable<T> {
35+
export function* reverse<T>(array: ReadonlyArray<T>): Iterable<T> {
3636
for (let i = array.length - 1; i >= 0; i--) {
3737
yield array[i];
3838
}

0 commit comments

Comments
 (0)