0
Question about Array destructuring
Can someone show me a good example of why we sometimes need to use a return array function instead of a normal Array for destructuring?
3 Respuestas
+ 3
The reason is that the function can actually do something before it creates the array, for example it could retrieve those three values from a database.
+ 2
What do you mean by "return array function"?
Can you show the code to explain?