Function getValueFromObject

  • Retrieves a specific value from an object based on a given key.

    Type Parameters

    • T

    Parameters

    • key: string

      The key to search for in the object.

    • obj: Record<string, T>

      The object containing the values.

    Returns T | null

    The value associated with the given key, or null if not found.

Generated using TypeDoc