Message from JavaScript discussions

October 2017

— Shouldn't foreach call window.sessionStorage.removeItem with a string as an argument?


If i say console log infact it logs 2 strings as expected, why can't it call window.sessionStorage.removeItem?

— Wow wat

— Uhm

— How would this look without lodash?

— Fuck, I'm not *that* familiar with lodash

— Well

— From inside to outside is:

— Get object keys as an array

— Filter array and keep only avlues that contain "sub-filter"

— Then foreach remaining value call a function

— In that case window.sessionStorage.removEItem