Skip to content

Tag: lodash

Best way to reset all values in an Javascript object

My javascript object looks something like: Upon some events in my code, I would like to reset these values to undefined like below: I use libraries like lodash, however i don’t see any function that would perform this. I know how to do this manually, but I was wondering if there is a “Best practic…