Preview: getOppositePlacement.js
Size: 248 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@popperjs/core/dist/esm/utils/getOppositePlacement.js
var hash = {
left: 'right',
right: 'left',
bottom: 'top',
top: 'bottom'
};
export default function getOppositePlacement(placement) {
return placement.replace(/left|right|bottom|top/g, function (matched) {
return hash[matched];
});
}
Directory Contents
Dirs: 0 × Files: 21