title: Lodash partial with object path
body: <p>Using lodash or arrow functions, what is the more elegant way to rewrite the <code>func</code> declaration in the following example ?</p>
  
  <pre><code>  function multiply(a, b) {
      return a * b;
    }
  
    let foo = {};
    let func = function (v) { return multiply(v, _.get(foo, 'bar')) };
    foo.bar = 4;
    console.log(func(4)); //Result in 16
  
    let foo2 = {};
    let func2 = _.unary(_.partialRight(multiply, _.get(foo2, 'bar')));
    foo2.bar = 4;
    console.log(func2(4)); //Result in NaN
  
    let foo3 = {};
    let func3 = (v) =&gt; multiply(v, _.get(foo3, 'bar'));
    foo3.bar = 4;
    console.log(func3(4)); //Result in NaN
  </code></pre>
  
  <p>I tried with arrow function and partial but can't get it to work as you can see</p>