"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.omit = omit;
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
function omit(obj, fields) {
  var shallowCopy = (0, _extends2.default)({}, obj);
  for (var i = 0; i < fields.length; i++) {
    var key = fields[i];
    delete shallowCopy[key];
  }
  return shallowCopy;
}