mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
16 lines
377 B
JavaScript
16 lines
377 B
JavaScript
/**
|
|
* Merges object properties
|
|
* @param {[type]} object [description]
|
|
* @param {[type]} source [description]
|
|
* @return {[type]} [description]
|
|
*/
|
|
function merge(into, source) {
|
|
for (var k in source) {
|
|
if (source.hasOwnProperty(k) && !into.hasOwnProperty(k)) {
|
|
into[k] = source[k];
|
|
}
|
|
}
|
|
return into;
|
|
}
|
|
|
|
module.exports = merge; |