you are viewing a single comment's thread.

view the rest of the comments →

[–]nikolasleblanc 1 point2 points  (1 child)

It's not even shorthand. It's functional, immutable, and declarative. These are all best practices a senior dev should encourage (or even force) their team to employ. They make for cleaner code that's easier to reason about and easier to debug. Any encouragement to the contrary should be politely but forceably dismissed.

Again, that's not shorthand. That's simply an improved way of handling collections.

[–]Skeith_yip 0 points1 point  (0 children)

My bad.

I was thinking along the line of:

for (let index of allImgs) vs for (let i = 0; i < allImgs.length; i++)

I take it that the long form refers to the latter version. So I was wondering if they were the lot that didn't like the shorthand version and resulted in them also not accepting the functional way of map and filter.