Within a Vue component's methods, I came across the following code snippet defining a function:
methods: {
onEditorChange({ editor, html, text }) {
console.log('editor change!', editor, html, text)
this.content = html
}
}
I tested the code and confirmed it is functioning as expected. Is it common practice to declare formal parameters in a function like that? The specific implementation can be found at https://github.com/surmon-china/vue-quill-editor