src/plugins/popper/index.js
function setAttributes(element, attributes) {
  Object.keys(attributes).forEach(function (prop) {
    var value = attributes[prop];
    if (value !== false) {
      element.setAttribute(prop, attributes[prop]);
    } else {
      element.removeAttribute(prop);
    }
  });
}
function setAttributes(element, attributes) {
  Object.keys(attributes).forEach(function (prop) {
    var value = attributes[prop];
    if (value !== false) {
      element.setAttribute(prop, attributes[prop]);
    } else {
      element.removeAttribute(prop);
    }
  });
}
function setAttributes ( element , attributes ) { Object . keys ( attributes ) . forEach ( function ( prop ) { var value = attributes [ prop ] ; if ( value !== false ) { element . setAttribute ( prop , attributes [ prop ] ) ; } else { element . removeAttribute ( prop ) ; } } ) ; }
Set the attributes to the given popper
@method
@memberof Popper.Utils
@argument {Element} element - Element to apply the attributes to
@argument {Object} styles
Object with a list of properties and values which will be applied to the element
Set the attributes to the given popper