[Vuejs]-JavaScript in Vue Component, set Data property in object 1 tp data in object 2 if Key matches

0👍

This looks to be working, it felt wrong setting value to the key but its not doing that, it is setting value of that key.

            Object.entries(this.form).forEach(([key, value]) => {
                Object.entries(this.article).forEach(([articleKey, articleValue]) => {
                    if ([articleKey][0] === [key][0]){
                        this.form[key] = [articleValue];
                    }
                });
            });

Leave a comment