SyntaxFix
Write A Post
Hire A Developer
Questions
Another way of doing it would be:
stuff = Object.assign(stuff, {$(this).attr('value'):$(this).attr('checked')});
Read more here: Object.assign()