Helpful
    Preparing search index...

    Class ZDataMatchOptional<TData, TFilter>

    Represents a data match that forwards to an inner match if the filter is null or undefined.

    Type Parameters

    • TData

      The type of data being matched.

    • TFilter

      The type of filter performing the match.

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Gets whether the given data matches the given filter.

      Parameters

      • data: TData

        The data to check.

      • filter: TFilter | null | undefined

        The filter to match against.

      Returns boolean

      True if filter is null or undefined. Otherwise, the result from the inner match with data and filter is returned.