3
rated 0 times
[
9]
[
6]
/ answers: 1 / hits: 54540
/ 8 Years ago, mon, november 28, 2016, 12:00:00
Lets say I have an object
filter: {
ID: false,
Name: true,
Role: false,
Sector: true,
Code: false
}
I want to set all keys to false (to reset them). What's the best way to do this, I'd like to avoid looping with foreach
and stuff. Any neat one liner?
More From » lodash