RSSAmplifier

Jared Khan · Aug 14, 2023

Breaking JavaScript Generators

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Coming back to JavaScript after focusing on Python, I was surprised that using break when iterating over a generator closes the generator. This post has an example of that behaviour and a comparison with Python’s behaviour.

Read on /blog/breaking-js-generators

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.

    Reading · Jared Khan · RSS Amplifier