When implementing a computed getter using the mapGetter helper from Vuex, the syntax typically involves using the spread operator in the following way:
...mapGetters([
'getter1',
'getter2',
'etc'
])
Although the spread operator is commonly used to expand arrays as function arguments, it is less common to see it used in front of a method like in the mapGetters
example.
Surprisingly, there are no clear examples of this syntax in the Mozilla documentation. Even after checking here:
https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Operators/Spread_operator
There's no mention of it. Can someone explain how this syntax works in this case and provide some documentation on it?