Last active
September 17, 2020 09:48
-
-
Save davidsara/808d86b3c36895a4422e4be76d8cde98 to your computer and use it in GitHub Desktop.
#jArchi - Removes all properties from the model.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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