BDBISHAL DATTA inbishalthesoftwareengineer.hashnode.dev·Jun 24, 2023 · 1 min readHow array methods work internally => Map || Filter || ReduceMap We discovered the power of map, which enables us to create a new array by applying a transformation to each element of an existing array. By understanding the internal workings of, we gained insights into how it functions its magic behind the sce...00
BDBISHAL DATTA inbishalthesoftwareengineer.hashnode.dev·Jun 22, 2023 · 1 min readclosures || map method || arguments || map method how internally worksvar map = function(arr, fn) { let n=arr.length; let arr2=[]; for(let i=0;i<n;i++){ //here we can call this function with 0 || 1 || 2 no of arguments arr2.push(fn(arr[i],i)); } return arr2; }; function arguments behavior ...00