Is there a lodash function to merge two objects and delete properties of one of them if they don't exist in the other?
<p>Consider the following two objects:</p>

<pre><code>const source = {
  foo: 'value',
  bar: 'value',
  baz: 'value'
};

const pattern = {
  foo: '',
  bar: ''
};

_.fn(source, pattern); // { foo: 'value', bar: 'value' }
</code></pre>

<p>In this example 'baz' property is deleted because it doesn't exist in the pattern.</p>