for (let i in this.form) { if (this.form.hasOwnProperty(i)) { if (!this.form[i]) { this.form[i] = undefined; } } }