# Function members

members( attribute, members, config?): 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
config? MembersFilterConfig Optional configuration for the filter

# 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'])