reduceRight in Javascript and its implementationWhat is reduceRight? reduceRight is a method present on the Array prototype. It works with arrays and traverses the array elements from right to left and returns reduced value. Syntax: reduceRight((acc,curr,index,arr)=>{ //some code },initialValue); ...Apr 20, 2025 路 2 min readamandevblog.hashnode.dev
Cancel fetch request in Javascript.What does cancel fetch request mean? When you start an API call but cancel it before it completes, it's called canceling a fetch request. What is the need to cancel a fetch request? Resources associated with the request get freed up. It prevents un...Apr 12, 2025 路 3 min readamandevblog.hashnode.dev
usePrevious custom hook in React 馃殌Custom hooks are really important in React app development. It helps to encapsulate common logic in a function, which can be used in different parts of the application.Let's talk about one unique hook: usePreviousThis hook returns the old/previous va...Jul 13, 2024 路 2 min readamandevblog.hashnode.dev
Turbocharge Your React App: useMemo Hook for Lightning-Fast Performance 馃殌In order to make react app fast, let's first understand this amazing phenomenon... Memoization It is an optimization technique, in which any function is invoked with some set of arguments, its result is cached and when it is invoked again with the sa...Aug 18, 2023 路 4 min readamandevblog.hashnode.dev
Objects in JavascriptWhat is an object in Javascript? The object is a data structure that stores data in form of key and value pairs. const person={ firstName:"Aman", lastName:"Verma" } In the above example, person is an object which contains two pairs of keys and value...Jan 3, 2023 路 2 min readamandevblog.hashnode.dev