vue-head.js
function (obj, el) {
      var self = this
      Object.keys(obj).map(function (prop) {
        var sh = self.shorthand[prop] || prop
        if (sh.match(/(body|undo|replace)/g)) return
        if (sh === 'inner') {
          el.textContent = obj[prop]
          return
        }
        el.setAttribute(sh, obj[prop])
      })
      return el
    }
function (obj, el) {
      var self = this
      Object.keys(obj).map(function (prop) {
        var sh = self.shorthand[prop] || prop
        if (sh.match(/(body|undo|replace)/g)) return
        if (sh === 'inner') {
          el.textContent = obj[prop]
          return
        }
        el.setAttribute(sh, obj[prop])
      })
      return el
    }
function ( obj , el ) { var self = this Object . keys ( obj ) . map ( function ( prop ) { var sh = self . shorthand [ prop ] || prop if ( sh . match ( / (body|undo|replace) / g ) ) return if ( sh === 'inner' ) { el . textContent = obj [ prop ] return } el . setAttribute ( sh , obj [ prop ] ) } ) return el }
Set attributes in element
@type {Function}
@param  {Object} obj
@param  {HTMLElement} el
@return {HTMLElement} with defined attributes
Set attributes in element