re: Array Flattening in 5 lines VIEW POST

TOP OF THREAD FULL DISCUSSION
re: You may also like Array.flat() Supported on all browsers except edge and ie. if you are already using Babel then you can use without issue.
 

Post here is to understand how we could write utility functions ourselves. Getting to know what's happening under the Hood.😅

 

Oh absolutely! It’s a valuable thing being able to understand what’s going on behind the scenes.

I only suggested .flat() incase you or others weren’t aware of it. As Its a relatively new addition.

Sure thing Agreed. I'll add about Array.flat too in the above Post . 😄

code of conduct - report abuse