I got a question, and would be really grateful if someone could explain to me in pseudo code how do I solve it
So here we go, I have an object like this
const obj = {
'key1': [],
'key2': [val1, val2],
'key3': [],
'key4': [val3]
}
I need to remove the keys which contain an empty array, in this case key1 and key3, and then return a new object without the keys that contained the empty array. Im trying to figure this out on my own, but I'm still a JS newbie.