mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
5 lines
158 B
JavaScript
5 lines
158 B
JavaScript
function* foo(){
|
|
var index = 0;
|
|
while(index <= 2) // when index reaches 2, yield's done will be true and its value will be undefined;
|
|
yield index++;
|
|
} |