Last active
August 29, 2015 14:17
-
-
Save mattpodwysocki/3c8d8221b429afeaa9cc to your computer and use it in GitHub Desktop.
This file contains 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
Observable.prototype.assign = function (object, property) { | |
return this.subscribe(function (x) { | |
object[property] = value; | |
}); | |
}; | |
// Usage | |
Observable.range(1, 1000) | |
.assign(document.querySelector('#result'), 'textContent'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment