ezyVet Javascript Helper Library Documentation
    Preparing search index...

    Function getValueFromObject

    • Parameters

      • obj: any
      • getBy: string | Function

      Returns string

      {string}

      • compose functions instead of passing callbacks

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

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