SAP Cloud SDK for JavaScript - v4.1.1
    Preparing search index...

    Function toSanitizedObject

    • Create an object based on the given key and value if neither key nor value are nullish.

      Parameters

      • key: string

        Name of the header.

      • value: any

        Value of the header.

      Returns Record<string, any>

      • An object containing the given key and value of an empty object.

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