I came across this example in Vue Quasar Framework, where is an object literal in parameters in function declaration:
import { ref } from vue
export default {
setup () {
const info = ref(null)
return {
info,
handleSwipe ({ evt, ...newInfo }) { //---this line----
info.value = newInfo
// native Javascript event
}
}
}
}
Is this some kind of webpack speciality, or what does it mean? I've tried to put it in chrome console without success.