platform-bible-utils
    Preparing search index...

    Function offsetChapter

    • Adjusts the chapter of a Scripture reference by a specified offset.

      Parameters

      • scrRef: SerializedVerseRef

        The Scripture reference whose chapter is to be adjusted.

      • offset: number

        The number of chapters to offset the current chapter by. Positive values move forward, negative values move backward.

      Returns SerializedVerseRef

      A new Scripture reference with the adjusted chapter. The verse number is reset to 1. The chapter number is clamped to stay within valid bounds for the book.