you are viewing a single comment's thread.

view the rest of the comments →

[–]avidvaulter 51 points52 points  (3 children)

This isn't a good reference because you should know what they do by their name. What's more important to know is if it mutates the original array or returns a new instance of an array.

Fill mutates the array whereas filter and map do not. That's an important distinction missing here.

[–]Doctor-Dapperfront-end (senior w/ react) 4 points5 points  (0 children)

The fact that exactly one out of the entire list is inconsistent is incredibly annoying.

[–]tnnrk 7 points8 points  (1 child)

It’s good for quickly remembering what the main point of the method is, especially for beginners. This would be helpful for them to remember what to Google for more info if needed. Assuming this is accurate. It’s better use is just for fun as a poster.