objectWithoutPropertiesLoose.js 499 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _objectWithoutPropertiesLoose;
  6. function _objectWithoutPropertiesLoose(source, excluded) {
  7. if (source == null) return {};
  8. var target = {};
  9. for (var key in source) {
  10. if (Object.prototype.hasOwnProperty.call(source, key)) {
  11. if (excluded.indexOf(key) !== -1) continue;
  12. target[key] = source[key];
  13. }
  14. }
  15. return target;
  16. }
  17. //# sourceMappingURL=objectWithoutPropertiesLoose.js.map