• Parameters

    • obj: any
    • getBy: string | Function

    Returns string

    {string}

    Deprecated

    • compose functions instead of passing callbacks

    Description

    gets value from an object based on the given key string or function

    Example

    getValueFromObject({ a: { b: 2 } }, 'a');
    // returns {b:2}

Generated using TypeDoc