Looping through an object and changing all values July 13, 2023 by Tarik try var superSecret = function(spy){ Object.keys(spy).forEach(function(key){ spy[key] = "redacted" }); return spy; }