How to flatten array using Javascript
Problem
So you have some nested array but need to flattened it so you use it inside your codebase. There are actually a couple of ways to do it.
Here is what we are gonna take a look at;
Array.prototype.flat()
Reduce and Concat Solution
Recursive So...
blog.furkanozbek.com2 min read