---
title: "Sahil Gupta (@sahilgupta2175) | Hashnode"
description: "Programmer Analyst Trainee at Cognizant. Read the latest articles by Sahil Gupta on Hashnode."
url: "https://hashnode.com/@sahilgupta2175"
---

@sahilgupta2175

# Sahil Gupta

@sahilgupta2175 · Bangalore, India · Joined December 2025

Programmer Analyst Trainee at Cognizant

[Website](https://www.sahilgupta.tech/)

## Comments

[Most welcome and stay tuned for next updates](https://hashnode.com/posts/jwt-authentication-in-node-js-explained-simply/6ac87a2448971d2a38f549f1/comment/6ac970f6fe437aa1b9d3d64e#reply-6ace6b3a40226328856d1dc4)

Reply · Article · Oct 13 · [JWT Authentication in Node.js Explained Simply](https://hashnode.com/posts/jwt-authentication-in-node-js-explained-simply/6ac87a2448971d2a38f549f1)

[This is a great addition, thanks for pointing it out! I kept the article focused on the "expand vs collect" mental model, but you're right that the enumerable-properties-only behavior (and the Math.max call-stack limit) are exactly the kind of thing that trips people up once they start using spread on real objects instead of plain literals. Updated the post to include both - appreciate you taking the time to write this out.](https://hashnode.com/posts/spread-and-rest-operators-in-javascript/6a9a516b17d2d5eb673a46c1/comment/6a9ad7becdeba61f2ff6fbeb#reply-6a9cf7bec5fc1d5c066d656d)

Reply · Article · Sep 6 · [Spread vs Rest Operators in JavaScript](https://hashnode.com/posts/spread-and-rest-operators-in-javascript/6a9a516b17d2d5eb673a46c1)

[Really appreciate this - genuinely useful corrections, adding all four to the post: Good catch on -0/+0 - I only mentioned the NaN side of SameValueZero, missed that the zeros collapse the other direction. The WeakMap point is the one I should've led with, actually. "Cache by object reference" without mentioning the strong-reference leak risk is incomplete advice. The JSON one is brutal in practice because it fails silently - no error, just an empty payload. Worth its own callout. Object.create(null) is a nice addition for the "don't need full Map, just want no prototype" case. Updated the article with all of these. Thanks for reading closely enough to catch this.](https://hashnode.com/posts/map-and-set-in-javascript/6a9a4be71580b143cec70d27/comment/6a9c6fd155d805e57ac8defe#reply-6a9cf7a176eabdc2ec3af254)

Reply · Article · Sep 6 · [Map and Set in JavaScript: Why { } and \[ \] Aren't Always Enough](https://hashnode.com/posts/map-and-set-in-javascript/6a9a4be71580b143cec70d27)
