Javascript와 Iterator

Iterable

Iterator

Javascript 에서 iterable 과 iterator 는 어떻게 구분할 수 있는가?

Generator function

Spread 문법

var text = '123';console.log([...text]);// ["1", "2", "3"]

박성룡 ( Andrew park )

Written by

Javascript is great We may not be great

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade