Interview question of the issue #264 of rendezvous with cassidoo.
Write a function fromTo
that produces a generator, that will produce values in a range.
Usage:
let gen = fromTo(5,7)
> gen()
5
> gen()
6
> gen()
7
> gen()
undefined
Just pnpm i
to install all dependencies and then pnpm t
to run the tests!