mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-06-18 02:59:04 +00:00
Destroyed GeneratorFunction (markdown)
parent
bd5d1692ef
commit
4b11a5b238
|
@ -1,12 +0,0 @@
|
|||
## GeneratorFunction
|
||||
|
||||
```js
|
||||
var a = new GeneratorFunction(function(_yield) {
|
||||
_yield("a");
|
||||
_yield("b");
|
||||
_yield("c");
|
||||
});
|
||||
console.log(a.next().value);
|
||||
console.log(a.next().value);
|
||||
console.log(a.next().value);
|
||||
```
|
Loading…
Reference in New Issue
Block a user