@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Function groupCartLinesBySet

    • Split cart (or order) lines into the lines outside sets and the sets, for rendering. Order is kept: a set sits where its first line is. Totals are the lines' own amounts summed, charges included; quantity counts goods only.

      Type Parameters

      Parameters

      • lineItems: T[] | null | undefined

      Returns CartLinesBySet<T>