Hi, I'm Melvin George. I help the world by building quality software.

         

Recent blogs

How to make an array with a specific length or array elements in TypeScript?

Learn how to the tuple type to make an array with a specific length or array elements in TypeScript

Read
TypeScript
How to make a type alias that changes type according to generic parameter type in TypeScript?

Learn how to make a type alias that changes type according to generic parameter type in TypeScript

Read
TypeScript
How to make Generic Interfaces that change type according to generic parameter type in TypeScript?

Learn how to make Generic Interfaces that change type according to generic parameter type in TypeScript

Read
TypeScript
How to add types to an interface from multiple interfaces in TypeScript?

Learn how to use the extends keyword and the comma "," symbol to add types to an interface from multiples interfaces in TypeScript

Read
TypeScript
How to add types to an interface from another interface or extend types in TypeScript?

Learn how to use the extends keyword to add types to an interface from another interface or extend types in TypeScript

Read
TypeScript
Which type to use for objects when properties are not known ahead of time in TypeScript?

Learn how to use index signatures to use for objects when properties are not known ahead of time in TypeScript

Read
TypeScript
How to make object properties read-only or immutable in TypeScript?

Learn how to use the readonly keyword to make object properties read-only or immutable in TypeScript

Read
TypeScript
How to make an array immutable or read-only in TypeScript?

Learn how to use `as const` syntax to make an array immutable or read-only in TypeScript

Read
TypeScript
Which type to use for rest parameter in a function in TypeScript?

Learn which type to use for rest parameter in a function in TypeScript

Read
TypeScript
Which return type to use when there is nothing to return in a function in TypeScript?

Learn how to use the `void` keyword when there is nothing to return in a function in TypeScript

Read
TypeScript
How to write function overloads in TypeScript?

Learn how to write function overloads in TypeScript

Read
TypeScript
How to make function parameters optional in TypeScript?

Learn how to make function parameters optional in TypeScript

Read
TypeScript
How to make Generic Functions that change return value type according to the parameter values type in TypeScript?

Learn how to make Generic Functions that changes return value type according to the parameter values type in TypeScript

Read
TypeScript
How to add properties to function in TypeScript?

Learn how to use type alias and casting feature to add properties to function in TypeScript

Read
TypeScript
How to set types or function type expression for a function in TypeScript?

Learn how to set types or function type expression for a function in TypeScript

Read
TypeScript
How to set types or function type expression for a callback function in TypeScript?

Learn how to set types or function type expression for a callback function in TypeScript

Read
TypeScript
How to merge the properties and methods of two objects in JavaScript?

Learn how to use the object spread operator '...' to merge the properties and methods of two objects in JavaScript

Read
JavaScript
How to check if a specific value or an element is present in an array in JavaScript?

Learn how to use the includes() array method to check if a specific value or an element is present in an array in JavaScript

Read
JavaScript
How to make the first letter in a string into a capital letter in JavaScript?

Learn how to use the toUpperCase() and slice() string methods to make the first letter in a string into a capital letter in JavaScript

Read
JavaScript
How to convert a Set to an Array in JavaScript?

Learn how to use the Array.from() method to convert a Set to an Array in JavaScript

Read
JavaScript
How to convert a Map to an Array in JavaScript?

Learn how to use the Array.from() method to convert a Map to an Array in JavaScript

Read
JavaScript
How to get or access the properties and methods of figure HTML element tag without errors in TypeScript?

Learn how to use Type Assertion and HTMLElement interface to get or access the properties and methods of figure HTML element tag without errors in TypeScript

Read
TypeScript
How to get or access the properties and methods of div HTML element tag without errors in TypeScript?

Learn how to use Type Assertion and HTMLElement interface to get or access the properties and methods of div HTML element tag without errors in TypeScript

Read
TypeScript
How to get or access the properties and methods of section HTML element tag without errors in TypeScript?

Learn how to use Type Assertion and HTMLElement interface to get or access the properties and methods of section HTML element tag without errors in TypeScript

Read
TypeScript
How to get or access the properties and methods of nav HTML element tag without errors in TypeScript?

Learn how to use Type Assertion and HTMLElement interface to get or access the properties and methods of nav HTML element tag without errors in TypeScript

Read
TypeScript
How to get or access the properties and methods of anchor (or a) HTML element tag without errors in TypeScript?

Learn how to use Type Assertion and HTMLAnchorElement interface to get or access the properties and methods of anchor (or a) HTML element tag without errors in TypeScript

Read
TypeScript
How to get or access the properties and methods of figcaption HTML element tag without errors in TypeScript?

Learn how to use Type Assertion and HTMLElement interface to get or access the properties and methods of figcaption HTML element tag without errors in TypeScript

Read
TypeScript
How to get or access the properties and methods of blockquote HTML element tag without errors in TypeScript?

Learn how to use Type Assertion and HTMLQuoteElement interface to get or access the properties and methods of blockquote HTML element tag without errors in TypeScript

Read
TypeScript
How to use the "in" operator to narrow down the properties and methods of an object with union type in TypeScript?

Learn how to use the "in" operator to narrow down the properties and methods of an object with union type in TypeScript?

Read
TypeScript
What are the falsy values in TypeScript and JavaScript?

Learn what are the falsy values and how to use those values in TypeScript and JavaScript

Read
TypeScript
Read more articles →