Normally I would use lodash's clone() or cloneDeep() to do that, if I have it into the project already, otherwise the good old JSON.parse( JSON.stringify( obj ) ); is always a great option.
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.
Normally I would use
lodash
'sclone()
orcloneDeep()
to do that, if I have it into the project already, otherwise the good oldJSON.parse( JSON.stringify( obj ) );
is always a great option.