範例程式:https://codepen.io/effytseng/pen/WYXKvz
Both results mostly are same. So, what kind of scenarios we want to use them? And which one is best for performance?
9. Conclusion
concat and spreads are very different when the argument is not an array.
When the argument is not an array, concat "arrayifies" it (i.e. converts x to [x]) and proceeds with this
temporary array, while ... tries to iterate it and fails if it can't
To sum it up, when your arguments are possibly non-arrays,
the choice between concat and ... depends on whether you want them to be iterated.