Understanding Promise.any() in JavaScriptIntroduction The Promise.any() static method takes an iterable of promises as input and returns a single Promise. This returned promise fulfills when any of the input promises fulfills, with the value of the first fulfilled promise. It rejects when a...3 min read·rohitdasu.hashnode.devMay 17, 2024
A Guide to Promise.all() in JavaScriptIntroduction The Promise.all() static method takes a list of promises as input and returns a single Promise. This returned promise is fulfilled when all the input promises are fulfilled (including when an empty list is passed), with an array of the f...3 min read·rohitdasu.hashnode.devMay 16, 2024
JavaScript Promises Explained SimplyDefinition A Promise is a placeholder for a value that may not be known when the promise is created. It lets you attach handlers to an asynchronous action's eventual success or failure. This allows asynchronous methods to return values like synchrono...3 min read·rohitdasu.hashnode.devMay 14, 2024
The most confusing array methodReduce() is not just another array method; it's more than that. Do you think I'm exaggerating? No, I'm not. Keep reading below to find out why. This array method requires two arguments: Callback function This callback function is invoked with the f...2 min read·rohitdasu.hashnode.devMay 13, 2024
Is Closure in JS really that complicatedClosure is bundling of two or more functions, where inner function has access to the properties and methods of the outer functions.1 min read·rohitdasu.hashnode.devMay 12, 2024