9 lines
209 B
Plaintext
9 lines
209 B
Plaintext
|
var hash = {
|
||
|
start: 'end',
|
||
|
end: 'start'
|
||
|
};
|
||
|
export default function getOppositeVariationPlacement(placement) {
|
||
|
return placement.replace(/start|end/g, function (matched) {
|
||
|
return hash[matched];
|
||
|
});
|
||
|
}
|