Stateful Logic Reuse ft. ComposablesComposables enable stateful logic reuse in vue33 min read·naumanzafar.devJan 6, 2024
What are Proxy Objects & how I learnt about them?I have been working on a third-party script for a client where we needed to detect headless browsers to prevent automated or controlled requests from making their way to our final data which is critical for so many reasons. Puppeteer is a Node librar...3 min read·naumanzafar.devJan 27, 2023
First understand scope; said old closurelet age = 10; console.log(age); // logs 10 Scope manages the accessibility of variables. Since the definition of age (line # 1) & accessing it (line # 2) are within the same scope. It works! In JavaScript, a new scope is created by a function or a ...2 min read·naumanzafar.devDec 12, 2022
My fancy name is Higher Order Function!They label me from higher order, but I don't forget my roots, I am still a function that simply operates on other functions! Functions that operate on other functions, either by taking them as arguments or by returning them, are called higher-order ...1 min read·naumanzafar.devDec 8, 2022