Skip to content

Instantly share code, notes, and snippets.

@briancavalier
Created December 3, 2014 21:54
Show Gist options
  • Select an option

  • Save briancavalier/8171c2b10b04328bc0e5 to your computer and use it in GitHub Desktop.

Select an option

Save briancavalier/8171c2b10b04328bc0e5 to your computer and use it in GitHub Desktop.
var switchLatest = require('./lib/combinator/switch').switch;
exports.switch = exports.switchLatest = switchLatest;
Stream.prototype.switch = Stream.prototype.switchLatest = function() {
return switchLatest(this);
};
var switchLatest = require('./lib/combinator/switch').switch;
exports.switch = switchLatest;
exports.switchLatest = switchLatest;
Stream.prototype.switch = Stream.prototype.switchLatest = function() {
return switchLatest(this);
};
@unscriptable
Copy link

var switchLatest = require('./lib/combinator/switch').switch;

exports.switch 
    = exports.switchLatest 
    = switchLatest;

Stream.prototype.switch 
    = Stream.prototype.switchLatest 
    = function() {
        return switchLatest(this);
    };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment