Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
flipDirection(): void {
const direction: string = this.menuPosition;
while (direction === this.menuPosition) {
this.menuPosition = CLR_MENU_POSITIONS[Math.floor(Math.random() * CLR_MENU_POSITIONS.length)];
}
}
}