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

11 lines
379 B
JavaScript

import _indexOfInstanceProperty from "core-js-pure/features/instance/index-of.js";
function _objectWithoutPropertiesLoose(r, e) {
if (null == r) return {};
var t = {};
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
if (-1 !== _indexOfInstanceProperty(e).call(e, n)) continue;
t[n] = r[n];
}
return t;
}
export { _objectWithoutPropertiesLoose as default };