Articles tagged in: TypeScript



Node.js — What is `Symbol.iterator`?

JavaScript has support for iteration protocols. These iteration protocols aren’t built-in implementations, but protocols outlining the convention that an implementation needs to follow. The Iteration protocol allows custom JavaScript objects to provide iteration behavior, for example how they provide values when looping over them in a for…of loop. …

Continue Reading

TypeScript — Using a String as Enum Key

TypeScript enums are similar to JavaScript objects. They store a named set of constants. Enums can also store a key-value pair. You can access the values with a string-like value. It’s “string-like” because enums are more strict in types and require a specific string value: one of the available …

Continue Reading
Page 1 of 4

Explore the Library

Find interesting tutorials and solutions for your problems.