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...
blog.techstackspace.com4 min read
Sid
I am curious
Ohh. In the last example I thought mydetails will be a nested object of mydatabase object.