Skip to content

Instantly share code, notes, and snippets.

@cellvia
Created October 26, 2012 20:18
Show Gist options
  • Save cellvia/3961240 to your computer and use it in GitHub Desktop.
Save cellvia/3961240 to your computer and use it in GitHub Desktop.
//arguments = [pipe1, pipe2, pipe3];
var streams = [].slice.call(arguments);
streams.map(
function(stream){
return
Object.keys(stream).reduce(function(s,k) { s[k] = stream[k]; return s }, Object.create(stream.__proto__));
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment