In a Vue component's methods I read this code where a function is defined this way
methods : {
onEditorChange({ editor, html, text }) {
console.log('editor change!', editor, html, text)
this.content = html
}
}
I checked the code and it is working. Can we declare formal parameters to a function like that ? You can find the code snippet in https://github.com/surmon-china/vue-quill-editor
{ editor, html, text }?