The javascript Map() Constructor property returns the constructor function of the map. It only returns the reference of the function and does not return the… Read More
Tag Archives: JavaScript-Methods
Among the Atomic operations the Atomics.waitAsync() operator is used to make an operation wait asynchronously on memory and returns a promise. It is non-blocking as… Read More
JavaScript resize() method in ArrayBuffer is used to increase or decrease the size of ArrayBuffer in JavaScript. This method specifies the change in length in… Read More
JavaScript String.isWellFormed() method is used to check if the string contains a lone surrogate or not. A lone surrogate is a string that contains Unicode… Read More
JavaScript String.raw() is a static method that is used to get the raw string form of template literals. These strings do not process escape characters.… Read More
JavaScript hasOwn() method is used to check if the object has the specified property or not. It returns true if the property exists else false.… Read More
The Proxy.revocable() method is a built-in method in JavaScript that creates a revocable Proxy object. This method returns an object that contains two properties: proxy… Read More
The set.keys() method is the same as the values() method. This means it returns the new iterator object that contains the value of each set… Read More
The Array() constructor is used to create Array objects and the array constructor can be called with or without a new keyword, both can create… Read More
Read JSON(JavaScript Object Notation) file using JavaScript. JSON stands for JavaScript Object Notation. It means that a script (executable) file which is made of text… Read More
In JavaScript, there is no sleep() function like in other programming languages. Similar effects can be done using various approaches. Approaches like Pausing the execution… Read More
JavaScript Promise catch() method is called whenever a promise is rejected. This method itself returns a promise so it can also be used to chain… Read More
JavaScript Promise any() method is a static method that takes an array of promises as a parameter and returns the first fulfilled promise. It returns… Read More
The set.forEach() method is used to execute the function which is taken as a parameter and applied for each value in the set, in insertion… Read More
The Javascript Set constructor is used to create Set objects. It will create a set of unique values of any type, whether primitive values or… Read More