platform-bible-utils
    Preparing search index...

    Function offsetVerse

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

      Parameters

      • scrRef: SerializedVerseRef

        The Scripture reference whose verse is to be adjusted.

      • offset: number

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

      Returns SerializedVerseRef

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