Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
@ -5,7 +5,7 @@ cleanObj(obj[key], keysToKeep, childIndicator);
|
||||
} else if (!keysToKeep.includes(key)) {
|
||||
delete obj[key];
|
||||
}
|
||||
});
|
||||
|
||||
return obj;
|
||||
};
|
||||
module.exports = cleanObj;
|
||||
Reference in New Issue
Block a user