bestpractic.orgbestpractic.org
Blog Quizzes Packages Games Learn soon Courses soon
Sign in Get Started
Blog/Typescript
Topic

Typescript

14 articles on Typescript — each with a runnable playground and a quiz.

Articles

Nestjs

NestJS Module Encapsulation Explained (with Cheat Sheet)

Sep 13 · 14 min
Nestjs

NestJS Dependency Injection Explained (with Cheat Sheet)

Sep 13 · 14 min
JavaScript

addDays() Mutated a Date Three Components Away From Where I Called It

Sep 12 · 5 min
Nestjs

NestJS Request Lifecycle Explained (with Cheat Sheet)

Aug 28 · 13 min
JavaScript

You copy and reverse the array to find the last match. findLast() searches from the end directly.

Aug 14 · 4 min
JavaScript

You use obj.hasOwnProperty(key) to check property ownership. It can silently fail. Object.hasOwn() is the safe replacement.

Aug 6 · 4 min
JavaScript

You've been wrapping new URL() in try/catch. URL.parse() does it natively.

Aug 1 · 5 min
TypeScript

You still write finally { resource.close() }. The using keyword does it automatically.

Jul 24 · 4 min
JavaScript

You've been doing Set math by hand. JavaScript finally shipped .union(), .intersection(), and friends.

Jul 23 · 4 min
JavaScript

You keep escaping the Promise constructor. Promise.withResolvers does it right.

Jul 22 · 4 min
JavaScript

You're rethrowing errors and losing context. Error.cause fixes that.

Jul 21 · 4 min
TypeScript

TypeScript Generics: The Complete Guide (with Cheat Sheet)

Jul 20 · 15 min
page 1 of 2
Older

Other topics

webdev 97javascript 81frontend 70css 32tutorial 27react 12performance 12node 8browser 8programming 6grammar 6html 5
bestpractic.org

One platform for the things worth learning properly — and the tools that come out of learning them.

Learn

CoursesLearning pathsBlogQuizzesPlaygrounds

Community

PackagesSubmit a packageCollectionsCollaborate

Platform

PricingCollaborate

Sections

Web DevelopmentLanguagesSoft Skills

© 2026 bestpractic.org

PrivacyTermsGitHub