Skip to content

Commit

Permalink
range -> numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Jun 23, 2023
1 parent 0308f2f commit 61b1f64
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export default function main() {
return [...range(0, 10)];
return [...numbers(0, 10)];
}

function* range(start: number, end: number) {
function* numbers(start: number, end: number) {
for (let i = start; i < end; i++) {
yield i;
}
Expand Down

0 comments on commit 61b1f64

Please sign in to comment.