source:
imaps-frontend/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
Last change on this file was d565449, checked in by , 4 weeks ago | |
---|---|
|
|
File size: 209 bytes |
Line | |
---|---|
1 | var hash = { |
2 | start: 'end', |
3 | end: 'start' |
4 | }; |
5 | export 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.