Javascript – Access destructured value inside function body in vue
In the docs for vue's v-model modifiers, they give this example and there is a playground link as well. <script setup> const [model, modifiers] = defineModel({ set(value) { if (modifiers.capitalize) { return value.charAt(0).toUpperCase() + value.slice(1) } return value } })…