Preparing search index...

    Function isTheElementContainsTheFilter

    • Checks if an element (string or array) contains any of the specified filter values

      Handles both string and array inputs with different matching logic:

      • For arrays: Uses strict equality for element matching
      • For strings: Uses substring matching (includes)

      Parameters

      • elementToTest: string | string[]

        The element to test (recipe title, tags array, etc.)

      • filters: string | string[]

        The filter values to search for

      Returns boolean

      True if any filter value is found in the element