NetanelBasal
11/15/2016 - 10:04 AM

obs6.js

subscribe(next, error, complete) {   
    if (typeof next === "function") {
      
      return this._functionThatThrowsValues({
        next,
        error: error || () => {},
        complete: complete || () => {}
      });
    }
    else {
      // pass the observer object
      return this._functionThatThrowsValues(next);
    }
}