Using the Iterator Pattern in JavaScript
Roller coaster in a park by Priscilla Du Preez I recently had to parse some markdown using the marked npm package and convert it into JSON objects for a project I'm working on. When I parsed the markdown I'd get back an array of tokens that would look something like the following: json { "type": …