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
May 4, 20262 min read1