code: 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;
  }
docs: @function filterObject
  
  @description
  filter down the items to those that return truthy based on the call of fn
  
  @param {function(*, string, Object): *} fn the method to filter with
  @param {Object} object the array of items to filter
  @returns {Object} the filtered items