This was my attempt at implementing the TC39's observable proposal.
Unfortunately, way too many tests fail.
If you want, you can give it a try to have all the tests pass.
First, install the dependencies:
npm i
Then, run the tests:
npx ts-node index
I deleted the .gitignore
file for this gist, because otherwise, the gist's highlight is no longer the README file, for some reason.