The three dots ( … ) are used in a function’s declaration as a parameter. These dots allow zero to multiple arguments to be passed when the function is called . The three dots are also known as var args .
What is the function of 3 dots?
The three dots ( … ) are used in a function’s declaration as a parameter. These dots allow zero to multiple arguments to be passed when the function is called . The three dots are also known as var args .