Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration Direction

A direction can be LEFT or RIGHT, or if you're at the end of a hallway, it can be FRONT.

You can refer to these directions as Direction.LEFT or Direction.RIGHT, for example, but it may be easier to do this if you're using them a lot:

const { LEFT, RIGHT, FRONT } = Direction;
console.log(LEFT);
console.log(RIGHT);

Index

Enumeration members

Enumeration members

FRONT

FRONT: = 2

LEFT

LEFT: = -1

RIGHT

RIGHT: = 1

Generated using TypeDoc