Skip to content

Instantly share code, notes, and snippets.

View wyeo's full-sized avatar
👋

Williams YEO wyeo

👋
View GitHub Profile
class Observable {}
Observable.of = (...args) => {
Observable.prototype.subscribe = (nextFn, errorFn, completeFn) => {
args.map(x => nextFn(x))
completeFn()
}
return new Observable()