Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function reduceTargetKeys() {
var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var predicate = arguments.length > 1 ? arguments[1] : undefined;
return _Object$keys(target).reduce(predicate, {});
}