Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function clean(obj) {
if (typeof obj === 'undefined') return {};
visit(obj,{},{filter:function(obj,key,state){
if (!key.startsWith('x-widdershins')) return obj[key];
}});
return obj;
}