In this tutorial, you will learn how to check if a variable is date in javascript. The date object in javascript is used to work with dates and times. Date object contains various helpful methods and they come in handy when you want to grab some basic details about a date such as time, month,
In this tutorial, you will learn how to check if variable is FormData in javascript. With the help of the FormData object, we can have form fields in a key and value pair format which makes it extremely easy for us to send them over the network via fetch() or XMLHttpRequest.send() method. There are numerous
In this tutorial, you will learn how to check if variable is blank in javascript. A variable is considered to be blank when it holds an empty string as its value. An empty string has a length of 0. There are numerous ways to check if a variable is blank. We are going to use
In this tutorial, you will learn how to check if variable is HTML element in javascript. When HTML is loaded into the browser, it forms a DOM (Document Object Model). The HTMLDocument object represents the document object which is the root node of the HTML document. The Element object represents an HTML element, like P,
In this tutorial, you will learn how to check if variable is promise in javascript. Promises in javascript are used to handle asynchronous tasks. After completion of a promise, we get one of the three possible states; resolved, rejected, or error. There are numerous ways to check if a variable is promise. We are going