When working with Vue.js, I use the following code to fire an event:
this.$emit("change", this.data);
The parent component then receives this data, which is in the form of an object containing values and an observer. It looks like this:
{
data: ['Joe Doe'],
__ob__: Observer
}
I want to extract only the values from the object and avoid including the __ob__
part. How can I achieve this?