Files
Tony QuetanoandGitHub 01fbc6009c Make "object without properties" helpers ES6-compatible (#17086)
* change `includes` to `indexOf` and rebuild

* turn off lint rule

* update fixtures
2025-01-24 14:24:47 +01:00

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 };