| 1 2 3 4 5 6 7 8 9 10 11 | 1x 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;
};
|