If the model I am working with consists of various data points, such as user names, labels, and totals, how can I efficiently filter these results based on a given filter string? For example, if the filter string is 'blue', how can I apply:
const filterRegex = new RegExp(filterString, 'i')
to all fields in the model, regardless of whether the string appears in the comment, user name, label, or total?
Any assistance on this matter would be greatly appreciated. Thank you.