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:
269 bytes
|
Line | |
---|
1 | // @flow
|
---|
2 | import type { Placement } from '../enums';
|
---|
3 |
|
---|
4 | const hash = { start: 'end', end: 'start' };
|
---|
5 |
|
---|
6 | export default function getOppositeVariationPlacement(
|
---|
7 | placement: Placement
|
---|
8 | ): Placement {
|
---|
9 | return (placement.replace(/start|end/g, matched => hash[matched]): any);
|
---|
10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.