In this video, we'll see how we can restructure an array or object in javascript with the spread operator and rest parameter with the help of an example.
Both were introduced in the ES6 version of javascript:
Spread operator -
Takes variables as arguments.
It is used in function calls.
Rest Parameter -
Takes an array as arguments.
It used in function declaration
syntax - ...
Javascript Tutorials -https://tutsfinder.com/javascript/jav...
Checkout our Facebook page: / tutsfinder
Checkout our Instagram Profile: / tutsfinder
For more info visit our website https://tutsfinder.com/ or you can mail us on [email protected]