function extend (a, b) {
  for (const prop in b) {
    if (hasOwnProperty(b, prop)) {
      a[prop] = b[prop]
    }
  }
  return a
}
Extend object a with the properties of object b
@param {Object} a
@param {Object} b
@return {Object} a