Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Can someone explain Rest and Spread in simple terms?
2 Respostas
+ 5
->TheĀ spread operatorĀ allows us to spread the value of an array (or any iterable) across zero or more arguments in a function or elements in an array (or any iterable).
->TheĀ rest parameterĀ allows us to pass an indefinite number of parameters to a function and access them in an array.
+ 1
You can find the example in my recent code.
https://code.sololearn.com/cA15A88A19A4/?ref=app