title: Using lodash, why is the map method within flow not working?
body: <p>I have a users object am trying to use the lodash <code>map()</code> method on it to have it return only the userIds, while filtering out any users with the <code>currentUserId</code>. I wanted to avoid using <code>chain()</code> since it pulls in the entire library, so it seemed that the <code>flow()</code> method is perfect, yet it's not mapping to an array of Id's.</p>
  
  <pre><code>import {
    map, filter, flow,
  } from 'lodash';
  
  const users = {
      123: {
        uid: 123
      },
      456: {
        uid: 456
      }
  };
  
  const currentUserId = 123;
  
  const userIds = _.flow(
    _.map(user =&gt; user.uid),
    _.filter(userId =&gt; userId !== currentUserId),
  )(users);
  </code></pre>
  
  <p>Unfortunately, this is returning the same object as was passed into it. How can I get an array with the ids of all the users that are not the current user?</p>