code: function attrsToString(attrs) {
    return Object.keys(attrs)
      .map(key => `${key}="${attrs[key]}"`)
      .join(' ');
  }
docs: Convert attributes object to string of HTML attributes.
  @param {Object} attrs
  @returns {string}