marko
Version:
UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.
22 lines (19 loc) • 427 B
JavaScript
;
var hasOwnProperty = Object.prototype.hasOwnProperty;
/**
* Merges object properties
*/
module.exports = function assign() {
var into = arguments[0];
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
if (source != null) {
for (var k in source) {
if (hasOwnProperty.call(source, k)) {
into[k] = source[k];
}
}
}
}
return into;
};