Newer
Older
CVSS_3.0_GUI / dist / CVSS_3.0_Calc-1.0.0-linux-x64 / node_modules / nwjs-builder-phoenix / node_modules / yargs / lib / assign.js
root on 7 May 2019 413 bytes Initial commit
  1. // lazy Object.assign logic that only works for merging
  2. // two objects; eventually we should replace this with Object.assign.
  3. module.exports = function assign (defaults, configuration) {
  4. var o = {}
  5. configuration = configuration || {}
  6.  
  7. Object.keys(defaults).forEach(function (k) {
  8. o[k] = defaults[k]
  9. })
  10. Object.keys(configuration).forEach(function (k) {
  11. o[k] = configuration[k]
  12. })
  13.  
  14. return o
  15. }
Buy Me A Coffee