How to delete/hide properties of Mongoose object - Node.jsWhen I was working on the user signup module for one of my side projects after successful user signup, the response expected was the user object. It is obvious that I shouldn't send back the password in the response, irrespective of whether it is sto...Sep 19, 2021 · 2 min readsaiphani.hashnode.dev
Collection Framework Cheat SheetCollection Classes Duplicates Accepted? Insertion Order maintained? Sorted Order? Is Thread Safe? List ArrayList Yes Yes No No LinkeList Yes Yes No No Vector Yes ...Dec 19, 2020 · 2 min readsaiphani.hashnode.dev
Optimizing DOM MutationsDo you do DOM mutations? In the right way? Let's discuss different approaches and the right way to do DOM mutations in JS. First of all, let's discuss a term called DocumentFragment. The DocumentFragment interface represents a minimal document objec...Dec 19, 2020 · 3 min readsaiphani.hashnode.dev
Difference between x++ and x+1Have you ever wondered what the heck is the difference between x++ and x=x+1? When x++ is used, the compiler increases the value of x by 1 and In the case of x=x+1, it again increases the value of x by 1. What to wonder?🤷🏼♂️ Let's see an example ...Dec 17, 2020 · 4 min readsaiphani.hashnode.dev