Nikhil GuptaHow to check if Two Objects are Equal?Most strongly typed languages such as Java use isEquals() to check whether two objects are the same. You may be tempted to simply use the…Sep 5, 2021Sep 5, 2021
Nikhil GuptaHow to DeepFreeze a nested Object/ArraySo I believe you’ve read my previous article — ‘Differences between Object.freeze( ) & Object.seal( ) in Javascript’ and now you’re…Aug 27, 2021Aug 27, 2021
Nikhil GuptaCloning and Mutating in JavaScript!If mutating an object isn’t allowed, then you must create a new object. For example, if you use Redux, a reducer is a function that…Aug 27, 2021Aug 27, 2021
Nikhil GuptaHow to disable Background Scroll when a ‘Modal/Side-Drawer’ is open in React JSSo the other day I was looking for ‘how to disable background scroll when a modal/sidebar is already opened’ on internet!Aug 25, 20215Aug 25, 20215
Nikhil GuptaDifferences between Object.freeze( ) & Object.seal( ) in JavascriptThey are functions that may appear to do the same action but have significant differences. And it was difficult for me to learn it. I don’t…Aug 25, 2021Aug 25, 2021