compact
Removes nil items.
Syntax
Section titled “Syntax”array | compactReturns
Section titled “Returns”array
Example
Section titled “Example”{{ product.variants | map: 'barcode' | compact | size }}1Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

