
Array Flatten in JavaScript: Every Approach Explained
From nested chaos to clean lists — understand, implement, and ace every flatten question.
7 articles

From nested chaos to clean lists — understand, implement, and ace every flatten question.

A flow diagram showing a source array [1, 2, 3] being unpacked by the ... spread syntax into three individual amber-coloured elements, which then merg

Written by Saurabh Prajapati Software Engineer @ IBM India Software Lab I remember the first time I saw this in someone's code: I stared at it and thought…

The Magic of this, call(), apply(), and bind() in JavaScript

By Saurabh Prajapati | IBM Software Engineer | WebDev Cohort 2026 When I first started writing JavaScript, I would just write functions like this and move…

By Saurabh Prajapati | IBM Software Engineer & Full-Stack Developer When I first started learning JavaScript, I thought operators were just... math…

JavaScript Promises aren't complicated once you stop thinking of them abstractly.