Bidhubhushan Gahanbidhubhushan.hashnode.dev·Jul 25, 2024Promise.all()The Promise.all() accepts an array of promises and returns a promise that resolves when all of the promises in the array are fulfilled or when the iterable contains no promises. It rejects with the reason of the first promise that rejects. The code f...Discuss·1 likeJavaScript
AARYAN BAJAJaaryan-bajaj-learnings.hashnode.dev·May 25, 2024Polyfills for Map , Filter & Reduce in JavascriptIntroduction Ever found yourself working on a project only to realise your JavaScript methods aren’t supported in older browsers? 🤔 Let's talk about how polyfills can be your rescue squad! In this blog, we'll explore What polyfills are Why the...DiscussbrowserCompatibility
Thanga Ganapathyganapathy.hashnode.dev·Apr 19, 2024Use JavaScript's New Set Composition Methods Without PolyfillsWelcome, There is a proposal to add methods like union and intersection to JavaScript's built-in Set class. It is currently at stage 3, but some browsers like chrome already supports it. As you can see the currently supported runtimes are very limite...DiscussJavaScript
Mayank Mishramynkmishra.hashnode.dev·Apr 7, 2024JavaScript Polyfills Explained: Part 1Polyfill is a piece of code (usually in JS🌍) that is used to support modern functionality in older browser versions that don’t natively support these modern functions.In other words, some older browser versions may not support these modern ES6 featu...DiscussJavaScript
surya ravikumarsuryaravikumar.hashnode.dev·Mar 14, 2024"Understanding Polyfills: Bringing Modern JavaScript Functionality to Older Browsers"<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Polyfill Example</title> <link rel="stylesheet" href="styles.css"> </head> <body> <h1> "Understandi...Discusspolyfills
Tushar Khannacodertushar.hashnode.dev·Feb 16, 2024Learn Polyfill of JS Array Map with ChatGPTArray.prototype.myMap = function(callback) { const array = []; this.forEach((item, index) => { array.push(callback(item, index, this)); }); return array; } You can this code be made optimized & is prod ready? ChatGPT The code can be opti...DiscussJavaScript
Md Talhamdtalha.hashnode.dev·Feb 2, 2024Implementing Custom Promise.all() in JavaScriptPromises in JavaScript provide a powerful way to handle asynchronous operations. One commonly used utility function is Promise.all(), which allows you to execute multiple promises concurrently and wait for all of them to complete. In this blog post, ...DiscussJavaScript
Md Talhamdtalha.hashnode.dev·Jan 24, 2024Crafting a Custom Polyfill for Array.prototype.flat() in JavaScriptJavaScript's Array.prototype.flat() method is a powerful tool for flattening nested arrays, making it easier to work with complex data structures. However, not all environments may support this method, especially in older browsers. In this blog post,...Discuss·26 readsJavaScript
Bharat Kumarbharat2044.hashnode.dev·Jan 17, 2024What is a Polyfill in JavaScript?A polyfill, in the context of JavaScript, is a piece of code (usually written in JavaScript) that provides functionality that is not natively supported by a web browser. The term "polyfill" is a combination of "poly," meaning many, and "fill," indica...Discuss·26 readspolyfills
Komal Shevanejs-brains.hashnode.dev·Jan 12, 2024What is Polyfill? Make it for ForEachA Polyfill is a code in JS which is used to provide modern functionality on old browser which is not supported in old versions. Basically mimic the modern functionality with traditional code.For Example: forEach will not work in the older version of ...Discuss·3 likes·36 readsJavaScript