Hacker News new | ask | show | jobs
by antrion 3670 days ago
How would you copy it then? I have tried the npm deep-copy library, but that didn't work (Symbol.Iterator isn't enumerable for example)

edit: I just thought, I could make a function, bind that to a variable and regen the generator again and again

1 comments

if you can easily create a new instance, that's the way to go.