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
11 lines
379 B
JavaScript
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 }; |