I am getting object in response of axios/ajax request. Now i want to add key value pair in that object how i Can do this.
Here is the object
user: {id: 1, name: "swifty", email: "swift.solutions.com@gmail.com", avatar: null, email_verified_at: null,…}
I want to update this object and add one more key is_customer
This is how i tried But it assigned only one key value is_customer and removed all others
response.data.user = {'is_customer': is_customer}