ubdate
This commit is contained in:
15
node_modules/yargs/lib/assign.js
generated
vendored
Normal file
15
node_modules/yargs/lib/assign.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user