Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am jaromb on github.
* I am jarombridges (https://keybase.io/jarombridges) on keybase.
* I have a public key ASBQU1A_eT6BwA2s1RyphbUtY5YFcfbLpsYa7Cj3FTuxFwo
To claim this, I am signing this object:
@jaromb
jaromb / ** 52: Generator - Send value to a generator
Last active July 28, 2019 21:32
ES6 Katas solutions (from es6katas.org)
// 52: Generator - Send value to a generator
// To do: make all tests pass, leave the assert lines unchanged!
// Follow the hints of the failure messages!
describe('Pass a value to a generator', () => {
it('basics: get the values from a generator in two ways', function() {
function* generatorFunction() {
yield 1;
yield 2;
}