• 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
  • hasSubsequence

Function hasSubsequence

  • hasSubsequence<
        EntityT extends Entity,
        ParamT extends FilterFunctionPrimitiveParameterType,
        ReturnT,
    >(
        subsequence:
            | ParamT[]
            | Field<EntityT, boolean, boolean>
            | CollectionFilterFunction<EntityT, ReturnT>,
        sequence:
            | ParamT[]
            | Field<EntityT, boolean, boolean>
            | CollectionFilterFunction<EntityT, ReturnT>,
    ): BooleanFilterFunction<EntityT>

    Build a filter function to test whether a set is a subsequence of the other, i.e. whether the second parameter can be transformed into the first by removing items. Evaluates to boolean.

    Type Parameters

    • EntityT extends Entity
    • ParamT extends FilterFunctionPrimitiveParameterType
    • ReturnT

    Parameters

    • subsequence:
          | ParamT[]
          | Field<EntityT, boolean, boolean>
          | CollectionFilterFunction<EntityT, ReturnT>

      The subsequence to test for. This can either be an array, a reference to a field or another filter function.

    • sequence:
          | ParamT[]
          | Field<EntityT, boolean, boolean>
          | CollectionFilterFunction<EntityT, ReturnT>

      The sequence to test. This can either be an array, 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:60

Settings

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