Versioning
This project follows semantic versioning.
Install
The ES6 version of mimic is hosted on NPM as 'mimic-it'.
There is no ES5 version at the moment - please just use babel or similar in your toolchain, with regenerator, if you need to run this on an older environment.
npm i -S mimic-it
or
yarn add mimic-it
Usage
// create a replayable iteratorconst it = // you can specifying first stepsconst it = // ...and / or specify initial args passed to the generatorconst it = // do stuff...itnext// ... etc ...// get a replayed iteratorconst it2 = it// get a replayed iterator, specifying how many steps to replayconst it3 = it