| 12345678910111213141516 |
- function* aa () {
- yield 1
- yield 2
- yield 3
- return 44
- }
- function* bb () {
- console.log('yield* aa()', yield* aa())
- }
- function* generateNumbers(start, step, end) {
- for (let i = start; i < end; i += step) {
- console.log(yield i)
- }
- }
|