This is essentially a smart way of defining a function that returns undefined.
From MDN :
The void operator evaluates the given expression and returns undefined.
Your code essentially matches:
return someFunctionThatReturnsAnArray()
.map((action) => { dispatch(action); })
.run();
I will be honest: if I came across this code in any project that I work with, I would call it for review. This makes no sense and is potentially confusing.
source
share