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

    Function FindKeyValuePair

    • Searches for a key-value pair in a dictionary object by key, with optional case-insensitive matching.

      Type Parameters

      • T

      Parameters

      • dic: TStringObject<T>

        The dictionary object to search, where keys are strings and values are of type T.

      • key: string

        The key to search for in the dictionary.

      • ignoreCase: boolean = false

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

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

      An object containing the matching key and its value if found; otherwise, undefined.

      5.0.0

      2025-06-19