Is there some elegant way of filtering out falsey properties from this object with lodash/underscore? Similar to how _.compact(array) removes falsey elements fr
_.compact(array)
From lodash 4, we can use pickBy() to get only the value equal to true.
const active = _.keys(_.pickBy(object));