The idea is to print out the contents of an array to the console one-by-one, each 100 milliseconds. It doesn't work though. What I've heard is that it fails because of a bug in Rx. Instead of printing out numbers 1,2,3 to the console, the code does ... nothing.
A simple workaround (Thanks Jussi) seems to work, though: Just concat your array observable with
So, now it prints the stuff to the console as you'd expect.
To make zipping with arrays a bit easier, you could add a
ZipWithArraymethod to the
Observableprototype like this.
I've put this extension, as well a bunch of others on Github, in my rxjs-extensions project.