UI for Zipcoin Blue

assign.js 413B

12345678910111213141516
  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. Object.keys(defaults).forEach(function (k) {
  7. o[k] = defaults[k]
  8. })
  9. Object.keys(configuration).forEach(function (k) {
  10. o[k] = configuration[k]
  11. })
  12. return o
  13. }