RSS Amplifier

Ajay Karwal · Sep 4, 2020

8 ways to use the Spread operator

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

JavaScript Jeep recently shared an article on ways to use the Spred operator. Spread operator expands an iterable object (i.e. an Array) into its individual element. An iterable object is anything that you can loop over. let fruits = [ '🍈' , '🍉' , '🍋' , '🍌' ] ; console . log ( ... fruits ) ; //🍈 🍉 🍋 🍌 Check out the full article for more ways to use the Spread operator

Read on ajaykarwal.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.