Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / gist:6399102
Created August 31, 2013 15:55
// This module uses AP2 as its starting point:
// https://github.com/domenic/promises-unwrapping
var hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
function mixin(a, b) {
Object.keys(b).forEach(function(key) {
a[key] = b[key];
});
return a;