After attempting several implementations for deep comparison and copying for JSON-serializable objects, I've noticed the fastest often are just: function …