Skip to main content

reject

Creates a new array excluding all the objects that have a specific property value. It is the opposite of where.

Basic Usage

This example selects all products from collection.products where the available property is not true.

{% set unavailable_products = collection.products | reject("available", true) %}