docs: function filterObject(fn, object) {
    const keys = Object.keys(object);
  
    let filteredObject = {},
        index = -1,
        key;
  
    while (++index < keys.length) {
      key = keys[index];
  
      if (fn(object[key], key, object)) {
        filteredObject[key] = object[key];
      }
    }
  
    return filteredObject;
  }