paint-brush
Working With Iterators and Generators in Javascript ES6by@iskenxan
239 reads

Working With Iterators and Generators in Javascript ES6

by Iskander Samatov3mMarch 7th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Using generators and iterators are (somewhat) new JavaScript features introduced with ES6. They are built-in symbols for turning your custom objects into iterables. They provide a way for custom data structures to work nicely in the larger JS environment. For example, the Immutable.JS library uses iterators to provide native Javascript functionality for their custom. objects such as the. Immutable.JS library. uses them to provide. native Javascript function to turn plain old JavaScript objects into. iterables: In ES6, you compute the dataset on demand rather than upfront like with traditional for loops.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Working With Iterators and Generators in Javascript ES6
Iskander Samatov HackerNoon profile picture
Iskander Samatov

Iskander Samatov

@iskenxan

Software developer. Forever a student - isamatov.com

About @iskenxan
LEARN MORE ABOUT @ISKENXAN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Iskander Samatov HackerNoon profile picture
Iskander Samatov@iskenxan
Software developer. Forever a student - isamatov.com

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here