JavaScript generator functions introduce a way to define an iterative algorithm by writing a function with non-continuous execution. This practically means they allow you to create a new generator every time you call a generator function, which can then be iterated over just like any other iterable.
Enums are part of TypeScript, but what about defining enums in plain old JavaScript? Here are a few way you can do that.
JavaScript, Object · Jun 12, 2021
Learn how you can leverage the Proxy object to use a JavaScript object the same way as you would use a regular array.
JavaScript, Object · Sep 27, 2021