TypeScript Check If String Is Number or Float

TypeScript Check If String Is Number or Float

Recently, I was working with a TypeScript application where we needed to check if a string is a number or a float. After doing a bit of research, I figured out multiple methods to do so. In this tutorial, I will explain how to check if a string is a number or a float in … read more…

How to Get Enum Key by Value in TypeScript?

typescript enum get key from value

Do you need to retrieve the key name from an enum value in TypeScript? As a TypeScript developer with many years of hands-on experience, I’ve faced this situation countless times—especially when working with data from APIs or user input that only provides enum values. In this tutorial, I’ll walk you through multiple methods to get … read more…

How to Format Numbers as Two Digits in TypeScript (With Examples)

Format Numbers as Two Digits in TypeScript

Have you ever found yourself needing to display numbers as two digits in your TypeScript projects, like “07” instead of “7”? In this tutorial, I’ll walk you through several ways to format numbers as two digits in TypeScript. We’ll cover built-in JavaScript methods, string manipulation, and formatting with Intl.NumberFormat. Here are the methods: Method 1: … read more…

How to Get the Decimal Part of a Number in TypeScript?

Get the Decimal Part of a Number in TypeScript

Have you ever needed to extract just the decimal part from a number in your TypeScript project? Maybe you’re building a financial dashboard or processing sales tax calculations, and you need to isolate the cents from a dollar amount. In this tutorial, I’ll walk you through several methods to get the decimal (fractional) part of … read more…

How to Check If Object Is Empty in TypeScript?

TypeScript Check If Object Is Empty

In modern TypeScript development, you might need to determine if an object is empty, meaning it has no own properties. In this tutorial, I will explain how to check if an object is empty in TypeScript using various methods with practical examples. What Does “Empty Object” Mean in TypeScript? In JavaScript and TypeScript, an “empty … read more…

Get Current SharePoint Site Information in SPFx using MS Graph API

Get Current SharePoint Site Information in SPFx using MS Graph API

In this article, I will explain how to retrieve the current SharePoint site information using the Microsoft Graph API in an SPFx web part. In the example below, you can see that the web part displays the current SharePoint site’s logo, site name, URL, ID, description, template, storage information, and more. Let’s see how to … read more…

How to Convert Number to String with Leading Zeros in TypeScript?

Convert Number to String with Leading Zeros in TypeScript

Have you ever needed to display ZIP codes, invoice numbers, or employee IDs in your TypeScript application, only to find your numbers missing those all-important leading zeros? In TypeScript, you can add leading zeros to numbers. In this tutorial, I’ll walk you through multiple methods for converting numbers to strings with leading zeros in TypeScript. … read more…

How to Round Down to 2 Decimals in TypeScript?

Round Down to 2 Decimals in TypeScript

Have you ever needed to round down a number to two decimal places in TypeScript? You may need this when working with currency values (such as US dollars and cents), or you may need to ensure that calculations for tax or discounts. In this tutorial, I will explain how to round down to 2 decimals … read more…

How to Round to 2 Decimals in TypeScript?

typescript round to 2 decimals

Recently, I was required to round numbers to two decimal places in TypeScript. This helps to display numbers correctly, and it is easy to do in TypeScript. In this tutorial, I’ll walk you through several easy ways to round to 2 decimals in TypeScript with practical examples. TypeScript Round to 2 Decimals There are many … read more…

Typescript Split String [With Examples]

Typescript split string

Do you want to know how to split a string in TypeScript? In this Typescript tutorial, I will explain everything about the Typescript split string. Especially how to split strings in TypeScript using various methods. To split a string in TypeScript, you can use the split() method, which divides the string into an array of … read more…

Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App