title: Is it fine to use JSON.stringify for deep comparisons and cloning?
body: <p>After attempting several implementations for deep comparison and copying for JSON-serializable objects, I've noticed the fastest often are just:</p>
  
  <pre><code>function deep_clone(a){
     return JSON.parse(JSON.stringify(a));
  };
  function is_equal(a,b){
      return JSON.stringify(a) === JSON.stringify(b);
  };
  </code></pre>
  
  <p>I feel like this is cheating, though. Like I'll find some problem that will annoy me on future. Is it fine to use those?</p>