blob: 04df2e13fb4b170dbf67dda35657ceded9f1ae3f [file] [log] [blame]
import _indexOfInstanceProperty from "../../core-js/instance/index-of";
import _Object$getOwnPropertySymbols from "../../core-js/object/get-own-property-symbols";
import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose";
export default function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (_Object$getOwnPropertySymbols) {
var sourceSymbolKeys = _Object$getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (_indexOfInstanceProperty(excluded).call(excluded, key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}