• Preparing search index...
  • The search index is not available
SAP Cloud SDK for JavaScript - v3.26.4
  • SAP Cloud SDK for JavaScript
  • @sap-cloud-sdk/odata-v4
  • contains

Function contains

  • contains<EntityT extends Entity>(
        substr:
            | string
            | Field<EntityT, boolean, boolean>
            | StringFilterFunction<EntityT>,
        str:
            | string
            | Field<EntityT, boolean, boolean>
            | StringFilterFunction<EntityT>,
    ): BooleanFilterFunction<EntityT>

    Build a filter function to test whether a string is a substring of the other. Evaluates to boolean.

    Type Parameters

    • EntityT extends Entity

    Parameters

    • substr: string | Field<EntityT, boolean, boolean> | StringFilterFunction<EntityT>

      The substring to test for. This can either be a string, a reference to a field or another filter function.

    • str: string | Field<EntityT, boolean, boolean> | StringFilterFunction<EntityT>

      The string to test. This can either be a string, a reference to a field or another filter function.

    Returns BooleanFilterFunction<EntityT>

    The newly created filter function.

    Copyright Ⓒ 2025 SAP SE or an SAP affiliate company. All rights reserved.

    • Defined in packages/odata-v4/dist/filter-functions.d.ts:12

Settings

Member Visibility
SAP Cloud SDK for JavaScript - v3.26.4
  • Loading...