All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.lib.utils.getOppositePlacement.js Maven / Gradle / Ivy

There is a newer version: 2.11.8
Show newest version
var hash = {
  left: 'right',
  right: 'left',
  bottom: 'top',
  top: 'bottom'
};
export default function getOppositePlacement(placement) {
  return placement.replace(/left|right|bottom|top/g, function (matched) {
    return hash[matched];
  });
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy