kaven-basic - v6.0.0
    Preparing search index...

    Function DeleteKeyValuePair

    • Deletes a key-value pair from the given dictionary object based on the specified key.

      Type Parameters

      • T

      Parameters

      • dic: TStringObject<T>

        The dictionary object from which to delete the key-value pair.

      • key: string

        The key of the key-value pair to delete.

      • ignoreCase: boolean = false

        Optional. If true, performs a case-insensitive key comparison. Defaults to false.

      Returns undefined | { key: string; value: T }

      The deleted key-value pair as an object containing the key and value, or undefined if the key was not found.

      5.0.0

      2025-06-19