How to Check if an Object is Empty in TypeScript

Check if an Object is Empty in TypeScript

Whether you are building a complex application for a client in New York or a simple data processing tool for a startup in Silicon Valley, understanding how to determine if an object is empty is crucial for ensuring your code runs smoothly and efficiently. In this tutorial, I will explain how to check if an … Read more >>

Extract Year From Date in TypeScript

Extract year from specific date in TypeScript

Have you ever worked on a feature where you needed to group records by year? I recently faced this while building an internal dashboard using TypeScript for tracking employee onboarding. I was working on an employee management module built with TypeScript, where each employee’s joining date was stored in the system. My task was to … Read more >>

How to Get Enum Key by Value in TypeScript

Get Enum Key by Value in TypeScript

While building an e-commerce admin dashboard in TypeScript, you define an enum called ProductCategory to manage all category types consistently across your app. This enum helps when filtering, tagging, or assigning categories to products during development. However, fetching product data from an external API returns only the category value (not the enum key). So, in … Read more >>

How to Add Minutes to a Date in TypeScript?

Update date by adding minutes in Typescript

While working on a feature to send timed reminders, I needed to add a few minutes to a given date in my TypeScript app. For this, I first tried using the built-in setMinutes method, but soon realized it could lead to issues when reusing the original date object. I explored other approaches to avoid this … Read more >>

How to Use TypeScript Enums in Classes

Use TypeScript Enums in Classes A Complete Guide

While developing an online shopping application, a developer needs to manage different order statuses, such as Pending, Shipped, Delivered, and Cancelled. To keep the code clean and consistent, they create a TypeScript enum called OrderStatus and use it inside a class named Order. In this tutorial, we will learn how to effectively use TypeScript enums … Read more >>

How to Handle ISO Date Strings in TypeScript?

Convert ISO format to Date in Typescript

While working on a recent feature that displayed important dates in a user-friendly format, I encountered an issue. The ISO date string, like “2025-07-04T00:00:00.000Z,” was showing up as July 3 instead of July 4 in the UI. At first, it seemed like a simple formatting issue, but it turned out to be a classic time … Read more >>

How to Check if a Value Exists in an Enum in TypeScript?

Check if a Value Exists in an Enum in TypeScript

While building an e-commerce application in TypeScript, you might define a ProductCategory enum for valid categories like ‘electronics’, ‘clothing’, and ‘food’. When receiving data from a user or an API, it’s important to check if the provided category actually exists in the enum. This prevents invalid values from being processed or stored. This ensures your … Read more >>

Convert Number to Date in TypeScript

Convert Number to Date in TypeScript with Unixtime stamp

When I was working on a TypeScript project recently, I got a requirement to show dates from a system that sent me big numbers like 1623456789000. These numbers are called timestamps, and they represent a date and time, but in a format that’s hard to read. In this blog, I will show you how to … Read more >>

How to Avoid Duplicate Enum Values in TypeScript

Avoid Duplicate Enum Values in TypeScript

Avoiding duplicate enum values in TypeScript is important to maintain clarity and avoid unexpected behavior when using enums. Here’s a realistic scenario showing how duplicate values can cause problems and how to avoid them. In this tutorial, we will learn how to avoid duplicate Enum values in TypeScript, how duplicate enum values can lead to … Read more >>

51 Python Programs

51 PYTHON PROGRAMS PDF FREE

Download a FREE PDF (112 Pages) Containing 51 Useful Python Programs.

pyython developer roadmap

Aspiring to be a Python developer?

Download a FREE PDF on how to become a Python developer.

Let’s be friends

Be the first to know about sales and special discounts.