objectWithoutProperties.js 280 B

123456789101112131415
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = function (obj, keys) {
  4. var target = {};
  5. for (var i in obj) {
  6. if (keys.indexOf(i) >= 0) continue;
  7. if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
  8. target[i] = obj[i];
  9. }
  10. return target;
  11. };