platform-bible-utils
    Preparing search index...

    Function getSectionForBook

    • Determines which section a book belongs to based on its ID

      Parameters

      • bookId: string

        The ID of the book (e.g., 'GEN', 'MAT')

      Returns Section

      The section (OT, NT, DC, or Extra) that the book belongs to

      Error if the book ID is not recognized or cannot be categorized