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

    Function applicableSelections

    • Selections without those at positions that apply to none of skus (the API refuses an explicit choice at such a position: OPTION_POSITION_NOT_APPLICABLE). Selections at unknown positions stay.

      Type Parameters

      • T extends { positionCode: string }

      Parameters

      • profile: OptionProfileView | null | undefined
      • selections: readonly T[]
      • skus: readonly string[]

      Returns T[]