r/javascript • • Jan 26 '16

You-Dont-Need-Lodash-Underscore

https://github.com/cht8687/You-Dont-Need-Lodash-Underscore
0 Upvotes

30 comments sorted by

View all comments

Show parent comments

0

u/atmin_ Jan 26 '16

There's e.g. Object.keys(obj).forEach(...) and similar. _ is useful, but not always needed, especially if you care how many dependencies your project has. For a functional construct-heavy project, I'd choose Ramda.

1

u/i_have_a_gub Jan 26 '16

I'll always choose Ramda. I find it much more intuitive and I feel like having data passed as the last parameter to functions allows for much more composable, clean code.

2

u/[deleted] Jan 26 '16

Lodash v4 has fp included for immutable auto-curried iteratee-first data-last methods

var _ = require('lodash/fp');
_.map(parseInt)(['6', '08', '10'])

2

u/i_have_a_gub Jan 26 '16

Yeah, but I feel more like I'm one of the cool kids when I use Ramda.

3

u/[deleted] Jan 31 '16 edited Jan 31 '16

With lodash/fp you can be a cool kid whose apps don't hit critical perf issues or have to be rewrite for every minor upgrade. It's also cool to not have to wonder about support because fp is tested in browsers & node 😎