UNPKG

@devlander/utils

Version:

Comprehensive JavaScript and TypeScript utilities for seamless development. Includes object manipulation, data validation, and more.

9 lines (8 loc) 350 B
/** * Retrieves a specific value from an object based on a given key. * * @param key - The key to search for in the object. * @param obj - The object containing the values. * @returns The value associated with the given key, or null if not found. */ export declare function getValueFromObject<T>(key: string, obj: Record<string, T>): T | null;