hasAll( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Refines a filter to match items whose specified field values equals all of the specified value parameters.

The hasAll() method refines this filter to only match items where the value of the specified field equals all of the specified values.

Matching strings with hasAll() is case sensitive, so "text" is not equal to "Text".

If the value of the specified field is an array, hasAll() will match if there is a match in the elements of that array for all of the specified values.

You can specify a list of values to match by providing an array of String, Number, or Date types as the value parameters.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field whose value is compared with values.


valuesArray<string>Required

Values to match.

Returns
Return Type:WixDataFilter
Did this help?