• Convenience function to loop through the items and item types of an envelope. (This function was mostly created because working with envelope types is painful at the moment)

    If the callback returns true, the rest of the items will be skipped.

    Type Parameters

    • E extends Envelope

    Parameters

    • envelope: Envelope
    • callback: ((envelopeItem, envelopeItemType) => boolean | void)
        • (envelopeItem, envelopeItemType): boolean | void
        • Parameters

          • envelopeItem: E[1][number]
          • envelopeItemType: E[1][number][0]["type"]

          Returns boolean | void

    Returns boolean

Generated using TypeDoc