Skip to content

Instantly share code, notes, and snippets.

@autotrof
Created March 17, 2021 05:22
Show Gist options
  • Save autotrof/82825c2a5a12d7fa0f02766aa30f082c to your computer and use it in GitHub Desktop.
Save autotrof/82825c2a5a12d7fa0f02766aa30f082c to your computer and use it in GitHub Desktop.
function copy_var(data){
return JSON.parse(JSON.stringify(data));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment