Options
All
  • Public
  • Public/Protected
  • All
Menu

Module functions/findStoryChoiceById

Functions

Const findStoryChoiceById

  • findStoryChoiceById(choiceId: string, story: Story): undefined | Choice
  • Finds the first Choice in the Story whose id matches the provided id. Returns undefined if no matching Choice can be found.

    Parameters

    • choiceId: string

      The id of the Choice to find.

    • story: Story

      The collection of Choice data to search.

    Returns undefined | Choice

Generated using TypeDoc