2023-04-04 06:05:47 +03:00
|
|
|
import { _object_without_properties_loose } from "./_object_without_properties_loose.js";
|
|
|
|
|
|
|
|
export function _object_without_properties(source, excluded) {
|
2023-03-31 09:15:21 +03:00
|
|
|
if (source == null) return {};
|
2023-04-04 06:05:47 +03:00
|
|
|
|
2023-03-31 09:15:21 +03:00
|
|
|
var target = _object_without_properties_loose(source, excluded);
|
|
|
|
var key, i;
|
2023-04-04 06:05:47 +03:00
|
|
|
|
2023-03-31 09:15:21 +03:00
|
|
|
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];
|
|
|
|
}
|
2021-12-05 09:46:09 +03:00
|
|
|
}
|
2023-04-04 06:05:47 +03:00
|
|
|
|
2023-03-31 09:15:21 +03:00
|
|
|
return target;
|
|
|
|
}
|
2023-04-04 06:05:47 +03:00
|
|
|
export { _object_without_properties as _ };
|