Last active
May 29, 2017 15:21
-
-
Save wyeo/2e50c1668f9983c7c2788f563be052ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Observable {} | |
Observable.of = (...args) => { | |
Observable.prototype.subscribe = (nextFn, errorFn, completeFn) => { | |
args.map(x => nextFn(x)) | |
completeFn() | |
} | |
return new Observable() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment