I'm looping through an object using for loop
, and I would like to ignore some specific values when looping.
This block of code is responsible to loop through my object:
let acceptAll = function (rawContent){
for(let i in rawContent)
if(!rawContent[i]) return false;
return true
};
I have a value in rawContent
that I would like to ignore when looping through, is that possible?
Many thanks in advance!