mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* change `includes` to `indexOf` and rebuild * turn off lint rule * update fixtures
15 lines
690 B
JavaScript
15 lines
690 B
JavaScript
import _Object$getOwnPropertySymbols from "core-js-pure/features/object/get-own-property-symbols.js";
|
|
import _indexOfInstanceProperty from "core-js-pure/features/instance/index-of.js";
|
|
import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
|
|
function _objectWithoutProperties(e, t) {
|
|
if (null == e) return {};
|
|
var o,
|
|
r,
|
|
i = objectWithoutPropertiesLoose(e, t);
|
|
if (_Object$getOwnPropertySymbols) {
|
|
var n = _Object$getOwnPropertySymbols(e);
|
|
for (r = 0; r < n.length; r++) o = n[r], -1 === _indexOfInstanceProperty(t).call(t, o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
}
|
|
return i;
|
|
}
|
|
export { _objectWithoutProperties as default }; |