Visualising documentation: JavaScript array.flat
Charlotte Fereday
Posted on August 18, 2020
Today’s function is array.flat(), mdn description here.
Flat takes a nested array and smooshes it into a new single level 'flat' array. If there are empty slots anywhere in the array, it will remove those too.
I've done my own version of the docs with sketches together. Check out the readme to see how you can run the examples. Here’s the folder for array.flat.
💖 💪 🙅 🚩
Charlotte Fereday
Posted on August 18, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
javascript JavaScript dumbed down Part three. control flow, basic functions, and interactions.
August 17, 2023