Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created August 27, 2021 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eamonnboyle/9dad8f26d382628af5bd7d779c05fad6 to your computer and use it in GitHub Desktop.
Save eamonnboyle/9dad8f26d382628af5bd7d779c05fad6 to your computer and use it in GitHub Desktop.
Nested Aliased Conditions
const isA = root.kind === 'A';
const isAorB = isA || root.kind === "B";
const isAorBorC = isAorB || root.kind === "C";
const isAorBorCorD = isAorBorC || root.kind === "D";
const isAorBorCorDorE = isAorBorCorD || root.kind === "E";
const isAorBorCorDorEorF = isAorBorCorDorE || root.kind === "F";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment