All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.yargs.lib.assign.js Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
// 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy