import * as logging from "../logging" ; export function removeKeys ( obj , keyToRemove ) { for ( const key in obj ) { if ( key === keyToRemove ) { delete obj [ key ] ; } else if ( typeof obj [ key ] === "object" ) { removeKeys ( obj [ key ] , keyToRemove ) ; } } }