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