Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return reduceTargetKeys(target, function (acc, key) {
if (keys.some(function (omitKey) {
return omitKey === key;
})) {
return acc;
} else {
return _objectSpread({}, acc, _defineProperty({}, key, target[key]));
}
});
}