You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
413 B
15 lines
413 B
// lazy Object.assign logic that only works for merging
|
|
// two objects; eventually we should replace this with Object.assign.
|
|
module.exports = function assign (defaults, configuration) {
|
|
var o = {}
|
|
configuration = configuration || {}
|
|
|
|
Object.keys(defaults).forEach(function (k) {
|
|
o[k] = defaults[k]
|
|
})
|
|
Object.keys(configuration).forEach(function (k) {
|
|
o[k] = configuration[k]
|
|
})
|
|
|
|
return o
|
|
}
|
|
|