JavaScript Rest Parameters and Spread Syntax
In this article, we will see what the rest parameters and what spread syntax is all about.
The example below is a summary of this article.
const peopleGrades = (index, ...numbers) => { /* ...rest */
const array = [ ...numbers ]; // ...spread
ret...
·4 min read·techstack.hashnode.devUpdated Read the article
Sid
Ohh. In the last example I thought mydetails will be a nested object of mydatabase object.