Skip to content

Tag Archives: javascript-object

Array.includes() Method: In JavaScript, includes() method is used to determine that a particular element is present in an array or not. It returns true if… Read More
In any object-oriented programming language, classes can have private and public fields. Fields are nothing but variables that hold the information. There are two types… Read More
The JavaScript Object.prototype.__lookupSetter__ () method is used to get a reference to the setter function when it was defined for a property of an object.… Read More
There are several types of errors that we encounter in JavaScript, for example, SyntaxError, RangeError, ReferenceError, EvalError, etc. The EvalError indicates an error regarding the… Read More
JavaScript Object.prototype.__lookupGetter__() method returns a function that is bound to the specified property as a getter. This method is although not recommended using and it… Read More
This article gives brief information about the piping/stream implementation in node.js and explains the working of various parts as buffers, streams and how to implement… Read More
The Object.prototype.toLocaleString() method returns a local specific string representation of this object using the locale of the environment. Derived objects like an array, number, date,… Read More
In JavaScript, objects are a collection of related data. It is also a container for name-value pairs. In JavaScript, we can check the type of… Read More
In JavaScript, the  Object.prototype.toString() method is used to return a string that can represent the object. The toString() method is automatically inherited by every object… Read More
The purpose of this article is to get an object which contains the parameter of the current URL. Example: Input: Output: { name: "john",… Read More
In JavaScript , the Object.prototype.valueOf() method is used to return the primitive value of the specified object. Whenever a primitive value is required, JavaScript automatically… Read More
In this article, we will learn how to check if the provided value is an object created by the Object constructor in JavaScript. Almost all… Read More
In this article, we will learn how to convert a two-dimensional array to an object. A two-dimensional array can have any number of rows and… Read More
Given two arrays the task is to create an object from them where the first array contains the keys of the object and the second… Read More