Using the Spread Operator with Arrays in Javascript


The spread operator allows an iterable to expand in places where 0+ arguments are expected.

Source Code

let moreFruits = ['mango', 'kiwi', ...fruits];
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments