2022-06-16 10:23:02 +03:00
|
|
|
import objectWithoutPropertiesLoose from './_object_without_properties_loose.mjs';
|
2021-12-05 09:46:09 +03:00
|
|
|
|
|
|
|
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 (excluded.indexOf(key) >= 0) continue;
|
|
|
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
|
|
target[key] = source[key];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return target;
|
|
|
|
}
|