3 ms·
In the code snippet they show the `startAutocomplete()` function checks for the "started" variable being true; but never actually sets it to true.
by namanyayg 5y ago
In the code snippet they show the `startAutocomplete()` function checks for the "started" variable being true; but never actually sets it to true.
- peterbe 5y agoIt's pseudo code. The real code is TypeScript React and looks very different and it wouldn't serve the article to take snippets from that code to explain how it works.
- namanyayg 5y agoOf course, otherwise any amateur would be able to see looping network requests right? Just saying that it'd been good to have accurate pseudocode on an MDN article.