How to delete/hide properties of Mongoose object - Node.jsThe solution for this is to define a custom .toJSON() method on the Mongoose schema and delete the properties which you want to hide in the response.2 min read·saiphani.hashnode.devSep 19, 2021
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 ...2 min read·saiphani.hashnode.devDec 19, 2020
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...3 min read·saiphani.hashnode.devDec 19, 2020
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 ...4 min read·saiphani.hashnode.devDec 17, 2020