objectWithoutProperties.js 688 B

123456789101112131415
  1. import _Object$getOwnPropertySymbols from "core-js-pure/features/object/get-own-property-symbols.js";
  2. import _indexOfInstanceProperty from "core-js-pure/features/instance/index-of.js";
  3. import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
  4. function _objectWithoutProperties(e, t) {
  5. if (null == e) return {};
  6. var o,
  7. r,
  8. i = objectWithoutPropertiesLoose(e, t);
  9. if (_Object$getOwnPropertySymbols) {
  10. var n = _Object$getOwnPropertySymbols(e);
  11. for (r = 0; r < n.length; r++) o = n[r], _indexOfInstanceProperty(t).call(t, o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
  12. }
  13. return i;
  14. }
  15. export { _objectWithoutProperties as default };