Good to see I'm not crazy! JSON.parse( JSON.stringify( obj ) ); seems to be a common 'shortcut'. But assigning each prop to a new object with obj.hasOwnProperty(item) also looks like a good option if you know which properties to look for.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good to see I'm not crazy!
JSON.parse( JSON.stringify( obj ) );
seems to be a common 'shortcut'. But assigning each prop to a new object withobj.hasOwnProperty(item)
also looks like a good option if you know which properties to look for.