@hebcal/leyning
    Preparing search index...

    Function calculateNumVerses

    • Calculates the number of verses in an aliyah or Haftarah from its b (begin verse), e (end verse) and k (book), caching the result on the object's v field. If v is already set, returns it unchanged.

      Parameters

      • aliyah: Aliyah

        the passage to measure; mutated in place to set v

      Returns number

      the number of verses in the passage