Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 1
    _.map(user => user.uid) is evaluated before _.flow() is even called. Commented Sep 12, 2018 at 14:27
  • @Pointy This seems like the functional usage of lodash, so shouldn't _.map be the curried invocation that creates a new function that expects an object to execute the mapping against? Unless OP is not using the lodash in its functional form, then the _.map shouldn't executing right after Commented Sep 12, 2018 at 14:32
  • Lodash does not (and cannot) change the way basic JavaScript expression evaluation works. The Lodash _.flow() method expects to be passed an array of function references. That's not what's being done in the posted code. Commented Sep 12, 2018 at 14:33
  • @Pointy I'm not following you. Do you mind providing an answer with the code written correctly? Commented Sep 12, 2018 at 14:34
  • _.map(user => user.uid) is a function call, not a function. Commented Sep 12, 2018 at 14:35