ES6 version came out with some new features, ...(triple dot) is one of those new JS features.
It can be used in two different ways, as a -
Spread operator: It is a new operator added in the ES6 version. It takes an iterable(array or string) and expands it into individual elements.
Rest parameter: It allows a function to accept the indefinite number of arguments as an array.
------
Chapters -
00:00 Introduction
01:47 Rest parameter
02:20 arguments(ES5) vs rest parameter(ES6)
03:17 arguments demo
05:15 Rest parameter demo
06:45 Spread operator
07:20 Uses of spread operator
07:41 Array concatenation
09:16 Extending an array/object
11:23 Cloning an array/object
13:23 Cheat sheet
13:47 Interview questions
------
Read here - https://crackingthefrontendinterview....
More interview questions: https://crackingthefrontendinterview....
Input-Output interview questions: https://crackingthefrontendinterview....