SyntaxFix
Write A Post
Hire A Developer
Questions
This one is easy to remember, but might be slow. Use jQuery to copy non-null properties to an empty object. No deep copy unless you add true as first argument.
true
myObj = $.extend({}, myObj);