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

Function hasSubset

  • hasSubset<
        EntityT extends Entity,
        ParamT extends FilterFunctionPrimitiveParameterType,
        ReturnT,
    >(
        subset:
            | ParamT[]
            | CollectionField<EntityT, any, any, boolean, boolean>
            | CollectionFilterFunction<EntityT, ReturnT>,
        set:
            | ParamT[]
            | CollectionField<EntityT, any, any, boolean, boolean>
            | CollectionFilterFunction<EntityT, ReturnT>,
    ): BooleanFilterFunction<EntityT>

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

    Type Parameters

    • EntityT extends Entity
    • ParamT extends FilterFunctionPrimitiveParameterType
    • ReturnT

    Parameters

    • subset:
          | ParamT[]
          | CollectionField<EntityT, any, any, boolean, boolean>
          | CollectionFilterFunction<EntityT, ReturnT>

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

    • set:
          | ParamT[]
          | CollectionField<EntityT, any, any, boolean, boolean>
          | CollectionFilterFunction<EntityT, ReturnT>

      The set 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:53

Settings

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