code: function keyFilter(obj, predicate) {
    var result = {}, key; // eslint-disable-line
  
    for (key in obj) { // eslint-disable-line
      if (obj[key] && predicate(key)) {
        result[key] = obj[key];
      }
    }
  
    return result;
  }
docs: a basic util filter function