All files / react-dom/src utils.js

100% Statements 7/7
100% Branches 2/2
100% Functions 1/1
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 111x 1x 1x 5x 5x 3x     1x    
export const omitBy = (object, filter) => {
  const newObj = {};
  for (const key in object) {
    const value = object[key];
    if (!filter(value, key)) {
      newObj[key] = value;
    }
  }
  return newObj;
};