2023-04-04 06:05:47 +03:00
|
|
|
export function _object_without_properties_loose(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 = {};
|
|
|
|
var sourceKeys = Object.keys(source);
|
|
|
|
var key, i;
|
2023-04-04 06:05:47 +03:00
|
|
|
|
2023-03-31 09:15:21 +03:00
|
|
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
|
|
key = sourceKeys[i];
|
|
|
|
if (excluded.indexOf(key) >= 0) continue;
|
|
|
|
target[key] = source[key];
|
|
|
|
}
|
2023-04-04 06:05:47 +03:00
|
|
|
|
2023-03-31 09:15:21 +03:00
|
|
|
return target;
|
2021-12-05 09:46:09 +03:00
|
|
|
}
|
2023-04-04 06:05:47 +03:00
|
|
|
export { _object_without_properties_loose as _ };
|