docs/_vendor/popper.js/dist/popper.js
function getOppositePlacement(placement) {
  const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
  return placement.replace(/left|right|bottom|top/g, matched => hash[matched]);
}
function getOppositePlacement(placement) {
  const hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };
  return placement.replace(/left|right|bottom|top/g, matched => hash[matched]);
}
function getOppositePlacement ( placement ) { const hash = { left : 'right' , right : 'left' , bottom : 'top' , top : 'bottom' } ; return placement . replace ( / left|right|bottom|top / g , matched => hash [ matched ] ) ; }
Get the opposite placement of the given one
@method
@memberof Popper.Utils
@argument {String} placement
@returns {String} flipped placement
Get the opposite placement of the given one