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.
Parameters
Section titled “Parameters”product
Section titled “product”Pick<Product, "axes" | "variants">
selection
Section titled “selection”Returns
Section titled “Returns”Variant | undefined