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

         

Recent blogs

How to hide, remove or omit certain values or keys from the JSON.stringify() method's output in JavaScript?

Learn how to use the JSON.stringify() method's replacer function to hide, remove or omit certain values or keys from the JSON.stringify() method's output in JavaScript

Read
JavaScript
How to check if an object is empty in JavaScript?

Learn how to use the Object.keys() method to check if an object is empty in JavaScript

Read
JavaScript
How to check if a string is a valid URL slug in JavaScript?

Learn how to use regular expressions to check if a string is a valid URL slug in JavaScript?

Read
JavaScript
How to check if a number or a string is a valid port number in JavaScript?

Learn how to use regular expressions to check if a number is a valid port number in JavaScript

Read
JavaScript
How to remove array elements contained in another array in JavaScript?

Learn how to use the Set() constructor function and the array filter() method to remove array elements contained in another array in JavaScript

Read
JavaScript
How to set default values for function parameters in JavaScript?

Learn how to use the assignment operator to set default values for function parameters in JavaScript

Read
JavaScript
How to check if a string is a valid hashtag in JavaScript?

Learn how to use regular expressions to check if a string is a valid hashtag in JavaScript?

Read
JavaScript
How to check if a string is a valid latitude and longitude combination in JavaScript?

Learn how to use regular expressions to check if a string is a valid latitude and longitude combination in JavaScript

Read
JavaScript
How to check if a string is a valid date using regular expression or regex in JavaScript?

Learn how to check if a string is a valid date using regular expression or regex in JavaScript

Read
JavaScript
How to check if a string is a valid UUID in JavaScript?

Learn how to use a regular expression to check if a string is a valid UUID (Universally unique identifier) in JavaScript

Read
JavaScript
How to check if a string is a valid Indian mobile number in JavaScript?

Learn how to use regular expressions to check if a string is a valid Indian mobile number in JavaScript?

Read
JavaScript
How to check if a string is a valid SHA256 hash in JavaScript?

Learn how to use regular expressions to check if a string is a valid SHA256 hash in JavaScript?

Read
JavaScript
How to check if a string is a valid MD5 hash in JavaScript?

Learn how to use regular expressions to check if a string is a valid MD5 hash in JavaScript?

Read
JavaScript
How to check if a string is a valid IPv6 address in JavaScript?

Learn how to use regular expressions to check if a string is a valid IPv6 address in JavaScript?

Read
JavaScript
How to check if a string is a valid IP address in JavaScript?

Learn how to use regular expressions to check if a string is a valid IP address in JavaScript?

Read
JavaScript
How to check if a string is a valid email address in JavaScript?

Learn how to use regular expressions to check if a string is a valid email address in JavaScript?

Read
JavaScript
How to easily convert HTML form tag input values to an object in JavaScript?

Learn how to use the FormData() constructor to easily convert HTML form tag input values to an object in JavaScript

Read
JavaScript
How to set the HTML lang attribute in Next.js?

Learn how to use the next.config.js file to set the HTML lang attribute in Next.js

Read
Nextjs
How to disable text selection on double-click using CSS?

Learn how to use the user-select CSS property to disable double-click text selection using CSS

How to do multiple fetch requests in parallel using JavaScript?

Learn how to use the Promise.all() method to do multiple fetch requests in parallel using JavaScript?

Read
JavaScript
How to scroll to the top of a webpage with smooth scroll animation using JavaScript?

Learn how to use the scrollTo() method to scroll to the top of a webpage with smooth scroll animation using JavaScript

Read
JavaScript
How to check if a string starts with a specific string or a character in JavaScript?

Learn how to use the startsWith() string method to check if a string starts with a specific string or a character in JavaScript

Read
JavaScript
How to get the extension of a file from the path in Node.js?

Learn how to use the extname() method from the path module to get the extension of a file from the path in Node.js

Read
Node.js
How to allow only certain string values for component props in Nextjs using TypeScript?

Learn how to use the string literal union type to allow only certain string values for component props in Nextjs using TypeScript

Read
Nextjs
How to set types for functional component props in Nextjs with TypeScript?

Learn how to use NextPage generic type to set types for functional component props in Nextjs with TypeScript

Read
Nextjs
How to remove all HTML tags from a string using JavaScript?

Learn how to use the replace string method to remove all HTML tags from a string using JavaScript

Read
JavaScript
How to convert an HTML string into real HTML or DOM using JavaScript?

Learn how to use the DOMParser Web API to convert an HTML string into real HTML or DOM using JavaScript

Read
JavaScript
How to convert an array into string literal union type in TypeScript?

Learn how to convert an array into string literal union type in TypeScript

Read
TypeScript
How to set typescript types for a page or a functional component in Next.js?

Learn how to use the NextPage type to set typescript types for a page or a functional component in Next.js

Read
Nextjs
How to redirect a user from the server or using the getServerSideProps() function in Next.js?

Learn how to use the redirect property to redirect a user from the server or using the getServerSideProps() function in Next.js

Read
Nextjs
Read more articles →