I want to update all object child values with the same value, let's do it by code:
var days = [
{
title: 'Day 1',
checked: false
},
{
title: 'Day 2',
checked: true
},
{
title: 'Day 3',
checked: false
}
];
Now if I want to updates the property checked for all days array nodes, I do this:
$.each(days, function(i, day) {
day[i].checked = true;
});
So, I'm looking for a better way for doing this, something like this:
days[*].checked = true;
Thanks in advance.

$.each( ... )