Visualising documentation: JavaScript array.flat

Charlotte Fereday - Aug 18 '20 - - Dev Community

Alt Text

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.

. . . . . . . . .
Terabox Video Player