Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created August 27, 2021 10:21
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/59a9f87045171f0aae49cc1bfd7a7bb3 to your computer and use it in GitHub Desktop.
Save eamonnboyle/59a9f87045171f0aae49cc1bfd7a7bb3 to your computer and use it in GitHub Desktop.
Nested Aliased Condition Successful Checks
const childIsA1 = isAorB && root.child.kind === 'A';
const childIsA2 = isAorBorC && root.child.kind === 'A';
const childIsA3 = isAorBorCorD && root.child.kind === 'A';
const childIsA4 = isAorBorCorDorE && root.child.kind === 'A';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment