• Potentially sensitive keys will be matched case-insensitive and as substrings. Matches will be replaced with a placeholder string.

    Type Parameters

    • T = any

    Parameters

    • input: Record<string, T>

      The record to be sanitized.

    • Optional replacementString: string

      The placeholder string.

    • Optional sensitiveKeys: string[]

      The list of keys to be replaced. This overrides the default list.

    Returns Record<string, T>

    The sanitized copy of the input record.

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