npmtest-auto-install (v0.0.1)

Code coverage report for node-npmtest-auto-install/auto-install/node_modules/yargs/lib/assign.js

Statements: 12.5% (1 / 8)      Branches: 0% (0 / 2)      Functions: 0% (0 / 3)      Lines: 12.5% (1 / 8)      Ignored: none     

All files » node-npmtest-auto-install/auto-install/node_modules/yargs/lib/ » assign.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17    1                            
// 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
}