Category TypeScript

All Categories

Get the key of an object by its value

January 22, 20233 min readTypeScript

Learn how you can get the key of an object by its value with JavaScript and TypeScript.

Should we use TypeScript enums?

January 12, 20239 min readTypeScript

Should we use TypeScript enums? Looking to replace your TypeScript enums? Consider union types or POJOs with as const annotations.

Get the keys of a numeric TypeScript Enum

December 15, 20214 min readTypeScript

Learn how you can get the keys of a numeric TypeScript Enum.

Loop over a TypeScript Enum

June 10, 20213 min readTypeScript

Find out how you can iterate or loop over a TypeScript Enum of string values.

Object destructuring with TypeScript

June 10, 20212 min readTypeScript

Find out how to destructure objects with types or interfaces in TypeScript.