F# – Fibonacci Sequence

A classic implementation of the Fibonacci sequence is shown below. An optimized version of the Fibonacci sequence is shown below. The dictionary is used to store previously computed values and…

Angular @ViewChild and ngIf

The Angular @ViewChild decorator can be tricky to handle if the element or component it references also has an ngIf directive. Take the example below. Currently, clicking the button will…

TypeScript – Add/Modify/Delete RecordType

The Record<Keys,Type>utility type in TypeScript is a powerful dictionary like utility. Assume you want to track employees by employee id and their relevant employee details. Creating The output from console.log:…