Skip to content

variantFor

variantFor(product, selection): Variant | undefined

The variant a complete selection names, or undefined. A product with one variant always yields it, whatever the selection says.

Pick<Product, "axes" | "variants">

Selection

Variant | undefined