I am not able to understand the difference between underscore js methods _.each
and _.invoke
.
Both seems to invoke the function passed on each item.
Under which scenario shall I use _.each
and _.invoke
?
Please share the difference with some examples.