Flatten object javascript recursivelyInterviewer : Can you flatten an object, Please take the below as input const obj = { name: "test", address: { personal: "abc", office: { building: 'random', street: 'some street' } } } an...May 2, 2023 · 1 min readimranshaikh.co.in
Array-Flatten Array Javascript interview questions-1Frontend Interview or Nodejs Interview it's the most frequently asked interview question. function doFlat(){ let flatten = []; function flat(arr){ for(let i=0; i<arr.length; i++){ const item = arr[i]; if(Ar...May 1, 2023 · 1 min readimranshaikh.co.in
Javascript Array Polyfills, How to create polyfills in JS.In my interview journey, I have seen 80% of the company asking about this hot topic called polyfills. So before applying to a job interview, you should have a thorough understanding of polyfills. But you might be thinking why companies are asking for...May 1, 2023 · 2 min readimranshaikh.co.in
What is the Promise of Javascript and how to use it effectively?What is a promise A promise is an Object that adds the callback functions once it gets resolved (success or failure) instead of passing the callback function as a parameter in the function. Basically with a Promise, we handle the asynchronous flow of...May 1, 2023 · 2 min readimranshaikh.co.in
How to use JavaScript Promise.all with realtime code example [Axios GET Calls]What is Promise.all A Promise.all() is a static method that takes an array (group) of promises as input and does the process as a single promise and return in than-able or catch. The basic syntax of Promise.all is Promise.all([promise1, promise2,.....1DAug 6, 2022 · 3 min readimranshaikh.co.in