Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const addFieldEqualFilter = (field: string, filter: string | string[]) => {
const expression = new ExpressionBuilder();
expression.addFieldExpression(field, '==', isArray(filter) ? filter : [filter]);
return addQueryFilter(expression.build());
};