Understanding the Rest Operator in Javascript
JavaScript 2 CommentsThe rest parameter syntax or Rest Operator in JavaScript allows us to handle the infinite number of parameters as an array. Basically, It improved the way of handling parameters of the function. Basic Example In the above example of the Rest Operator in JavaScript, we created the function called fun and receiving the arr parameter