Understanding Spread and Rest Operators in JavaScript
In JavaScript, you’ll often see three dots ....
At first, it looks confusing, but it actually does two simple things depending on where it is used.
Spread → expands values
Rest → collects values
S
understanding-javascript-methods.hashnode.dev2 min read