code: function filter(object, iterator, follow = false) {
    // if the object is an object and is not empty
    if (is(object) && !empty(object) && typeof iterator === 'function') {
      // create a clone of the object to manipulate
      let result = clone(object);
  
      // for each key/value in the object
      // follow is passed into each therefore the
      // each function works out whether to follow
      // the objects
      each(object, (key, value) => {
        // check if the iterator is false if it
        // is false then delete that key from the object
        if (iterator(key, value) === false) {
          // delete the key/value
          result = del(result, key);
        }
      }, follow);
  
      // return the result
      return result;
    }
  
    // if the object isn't an object or is empty return an
    // empty object because the iterator can't be ran to
    // make a check
    return {};
  }
docs: Filter the object keys/values depending on the iterator evaluation
  
  @example
  const a = { a: 1, b: 2, c: 3 };
  filter(a, (key, value) => value > 2); // => { c: 3 }
  
  @since 1.0.0
  @version 1.0.0
  
  @param {object} object The object to filter
  @param {function(key: string, value: *)} iterator The function to evaluate
  @param {boolean} follow Whether to follow objects
  
  @returns {object} The filtered object