swc/packages/swc-helpers/esm/_object_without_properties_loose.js

17 lines
423 B
JavaScript
Raw Normal View History

export function _object_without_properties_loose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
2021-12-05 09:46:09 +03:00
}
export { _object_without_properties_loose as _ };