In a component, i defined a reactive constant (isn't that paradox?) like this:
const form = reactive({
name: null,
fruits: new Array(),
})
The value for name is set via a text input field. The value for fruits is set via a group of checkboxes.
when i want to get the values of each programmatically using this function:
const makeObj = () => {
console.log("form.name", form.name)
console.log("form.fruits", form.fruits)
}
... i can only access form.name, but form.fruitsreturns some Proxy object:
BUT: I can access the elements of the array directly with form.fruits[0]returning the first item, e.g. Banana.
Question:
How can i access the array value of form.fruits? Do i have to convert the reactive array form.fruits to a "normal" array somehow?
Thanks for your help!

JSON.stringify(form.fruits)