Great article! This was a really great explanation of spread/rest.
I'd also add that three dots on the left-side of an equals sign is "destructuring assignment" and allows you to "pull out" values.
ex:
[a, b, ...rest] = [10, 20, 30, 40, 50]; console.log(rest); // [30,40,50] let {a, b, ...rest} = {a: 10, b: 20, c: 30, d: 40} console.log(a); // 10 console.log(b); // 20 console.log(rest); // { c: 30, d: 40 }
I missed writing about destructor. Thanks
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article! This was a really great explanation of spread/rest.
I'd also add that three dots on the left-side of an equals sign is "destructuring assignment" and allows you to "pull out" values.
ex:
I missed writing about destructor. Thanks