Function compareFulltext

Compares the full text in a given data object with a search term.

  • Type Parameters

    • T extends Record<string, any>

      The generic type for the data object.

    Parameters

    • data: T

      The data object to compare.

    • search: string

      The search term to compare against the data object.

    • Rest...keys: string[]

      The keys in the data object to compare against.

    Returns boolean

    • Returns true if the full text in the data object contains the search term, false otherwise.