source: imaps-frontend/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 209 bytes
Line 
1var hash = {
2 start: 'end',
3 end: 'start'
4};
5export default function getOppositeVariationPlacement(placement) {
6 return placement.replace(/start|end/g, function (matched) {
7 return hash[matched];
8 });
9}
Note: See TracBrowser for help on using the repository browser.