Skip to content

Instantly share code, notes, and snippets.

@davidsara
Last active September 17, 2020 09:48
Show Gist options
  • Save davidsara/808d86b3c36895a4422e4be76d8cde98 to your computer and use it in GitHub Desktop.
Save davidsara/808d86b3c36895a4422e4be76d8cde98 to your computer and use it in GitHub Desktop.
#jArchi - Removes all properties from the model.
// Removes all properties from the model.
//
// (c) 2019 David Sara
function anonymize() {
$("element").each(function(element) {
properties = $(element).prop();
if (properties.length > 0) {
properties.forEach(function(prop) {
element.removeProp(prop);
});
}
});
}
anonymize();
console.log("Done.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment