#examples

Found 3 articles tagged with #examples

An example using builder pattern in Swift

The builder pattern allows you to create objects with varying configurations without the need to have multiple constructors with different parameter combinations.

How to create mapped types in TypeScript

You can avoid repeating yourself by using mapped types to transform an existing type into a new type by mapping over its properties with some modifications.

JavaScript Closures Explained with Examples

JavaScript closures can be a tricky concept for beginners to understand, but they are an essential part of the language. In this tutorialā€¦.