Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/object/getValueFromObject

Index

Functions

Functions

Const getValueFromObject

  • getValueFromObject(obj: any, getBy: string | Function): string | null
  • 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}

    Parameters

    • obj: any
    • getBy: string | Function

    Returns string | null

    {string}

Generated using TypeDoc