Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Recursivly remove property by name
function superkiller(o, prop_name) {
if(o.hasOwnProperty(prop_name)) {
delete o[prop_name]
$.each(x, function(i, e) {
if(typeof(e) == "object") { superkiller(e, prop_name) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.