code: function applyFilterOnObject(obj, filterFn) {
      if (filterFn == null) {
          return Object.assign({}, obj);
      }
  
      const filteredObj = {};
      coreObjectEntries(obj).forEach(([key, val]) => {
          if (filterFn(val, key)) {
              filteredObj[key] = val;
          }
      });
  
      return filteredObj;
  }
docs: Returns a filtered copy of the given object's own enumerable properties (no inherited
  properties), keeping any keys that pass the given filter function.