title: Javascript compare objects having functions using lodash isEqual
body: <p>how to compare two objects for equality if they have functions? lodash's isEqual works really well until functions are thrown in:</p>
  
  <pre><code>_.isEqual({
      a: 1,
      b: 2
  }, {
      b: 2,    
      a: 1
  });
  
  // -&gt; true
  
  _.isEqual({
      a: 1,
      b: 2,
      c: function () {
          return 1;
      }
  }, {
      a: 1,    
      b: 2,
      c: function () {
            return 1;
      }
  });
  
  // -&gt; false
  </code></pre>