Storing the values entered by the user in an input field as "values" and having another array, "existing userdetails," returned from the backend that contains all details of existing users, I am faced with the task of comparing these two sets of data.
I have considered using a for loop to execute this comparison, but I have not been able to find the correct syntax. Would it be possible to achieve this comparison using forEach instead?
private existinguser(value) {
console.log("user",this.user)
console.log("value",value)
}
The function existinguser provides access to the existing user details through "this.user," while the parameter value holds the input values from the current user. How can one efficiently compare these two datasets?