You can combine the 'test' function and the 'filter' method to filter strings in an array. A regular expression method, 'test', looks for a specified pattern in a string and returns a boolean value. Hence, it also indicates whether the design was present or not.