I have the following object array:
{
running: false,
swimming: false,
drawing: true
}
I want to filter the object array with only those that have false properties. From there I want to get only the keys of the array.
eg.
[running, swimming]
I have the first part of removing values that have truth booleans through the following:
var filtered = _.pick(hobbies, function(value, key) {return !value;});
What would be the best way to "flatten" the current array so that I only have the key values?