Initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
var hash = {
|
||||
start: 'end',
|
||||
end: 'start'
|
||||
};
|
||||
export default function getOppositeVariationPlacement(placement) {
|
||||
return placement.replace(/start|end/g, function (matched) {
|
||||
return hash[matched];
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user