Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private normalizeJob(jobObject: Object) {
const nullJob = JobHelper.getNullJobInputs(this.model);
const job = jobObject || {};
for (const key in job) {
if (!nullJob.hasOwnProperty(key)) {
delete job[key];
}
}
return {...nullJob, ...job};
}