huridocs/uwazi

View on GitHub
app/react/utils/objectWithoutKeys.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export default function (obj, keys = []) {
  const target = { ...obj };

  keys.forEach(key => {
    delete target[key];
  });

  return target;
}