Whenever you want to use a computed getter with the mapGetter helper from Vuex you would use it like so:
...mapGetters([
'getter1',
'getter2',
'etc'
])
I have seen the spread operator used before to expand arrays to be used as function arguments, but not in front of a method like we see here with the mapGetters
example.
I can't really find examples of this syntax either, when looking in mozilla documentation for example:
https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Operators/Spread_operator
Nothing is there. How exactly does this syntax work and this case and could someone provide some documentation on this perhaps?