DEV Community

Discussion on: JavaScript Array Method Cheat Sheet (17 must-know methods) 📄

Collapse
 
ifkas profile image
Ivo Culic

Great article, this might help to better visualize some of the JavaScript array methods, check it out here: js-arrays-visualized.com it has the graphical presentation of the methods, definitions (when you hover method name), and code examples. 👍🏻

Collapse
 
seviche profile image
Seviche • Edited

Wow, that graphical presentation is so helpful, thank you!

And I found some mistakes in it:

  1. The parameters of .fill() method might be in the wrong position, it should be .fill(🟣 ,1) not .fill(1,🟣 )
  2. The output of .copyWithin method should be 🟦 🟣 🟣
Collapse
 
ifkas profile image
Ivo Culic

Hey @seviche ! That's a great catch! I made the correction, thank you, I appreciate it!

Thread Thread
 
seviche profile image
Seviche

You are welcome! This is a very useful presentation and I will share it with my friends 😄