Skip to content

Instantly share code, notes, and snippets.

@vldvel
Created April 20, 2018 07:50
Show Gist options
  • Save vldvel/516b5da0e9b14bc844678964c21d8968 to your computer and use it in GitHub Desktop.
Save vldvel/516b5da0e9b14bc844678964c21d8968 to your computer and use it in GitHub Desktop.
lodash-composition
reduce(map(filter(users, ({ active }) => active), ({ age }) => (age + 100) % 27), (p, c) => c > 20 ? p.concat(c) : p, []);
@ewahner
Copy link

ewahner commented Nov 2, 2018

You know you can use the _.chain(users) and then apply all of your functions in a more fluent format?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment