ChemPal Documentation - v1.6.0
    Preparing search index...

    Module utils/typeGuards/sciencelab

    Functions - Typeguards

    isScienceLabAttributeResponse

    Type guard for the ScienceLab (BigCommerce) product-attributes AJAX response. Narrows an unknown parsed value to ScienceLabAttributeResponse by requiring that it be an object carrying a data object. The variant price is read from data.price.without_tax.value, which callers still null-check.