# Function members

members(attribute, members): Filter

Creates a filter to isolate attribute values that match any of the specified strings.

Matching is case sensitive.

# Parameters

Parameter Type Description
attribute Attribute Attribute to filter on
members string[] Array of member values to filter by

# Returns

Filter

A filter instance

# Example

Filter for items where the condition is 'Used' or 'Refurbished' from the Sample ECommerce data model.

filterFactory.members(DM.Commerce.Condition, ['Used', 'Refurbished'])