This comment is hidden because it contains spoiler information about the solution
I never knew about that. Thanks!
Why use a map here?
map
The same thing could have been achieved with a forEach or a for...of
forEach
for...of
In JS, an array is more-or-less an object with numbers as keys. So this answer is doubly redundant.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I never knew about that. Thanks!
Why use a
map
here?The same thing could have been achieved with a
forEach
or afor...of
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In JS, an array is more-or-less an object with numbers as keys. So this answer is doubly redundant.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...