function merge(a, b) {
  if (a && b) {
    for (let key in b) {
      a[key] = b[key];
    }
  }
  return a;
}
/**
 * Merge object b with object a.
 *
 * @param {object} a
 * @param {object} b
 * @return {object}
 * @public
 */
Merge object b with object a.
Merge object b with object a .
function merge(a, b) {
  if (a && b) {
    for (let key in b) {
      a[key] = b[key];
    }
  }
  return a;
}
function merge ( a , b ) { if ( a && b ) { for ( let key in b ) { a [ key ] = b [ key ] ; } } return a ; }
Merge object b with object a.
Merge object b with object a .