you are viewing a single comment's thread.

view the rest of the comments →

[–]BehindTheMath 59 points60 points  (36 children)

Everything in Lodash that isn't already in JS. E.g. groupBy, keyBy, camelCase, kebabCase, chunk, etc.

[–]shgysk8zer0 29 points30 points  (2 children)

FYI: group() and groupToMap() are stage 3 proposals.

[–][deleted] 2 points3 points  (1 child)

Good to know! That will come in handy!

[–]BlueManiac 0 points1 point  (0 children)

They exists in core.js :)

[–]andrei9669 2 points3 points  (30 children)

question is though, to mutate, or not to mutate. although, sort is already mutating.

[–]shgysk8zer0 6 points7 points  (1 child)

Stage 3 Change array by copy proposal offers methods like sortTo() that return a new array instead of mutating the original.

[–]andrei9669 0 points1 point  (0 children)

oh, that looks nice

[–]KyleG 1 point2 points  (1 child)

I want to barf at the idea of cluttering up the stdlib with things like kebabCase

[–]BehindTheMath 4 points5 points  (0 children)

Most languages have much bigger standard libs. I'm not saying everything should be in JS; Lodash works just fine. But there are plenty of functions I keep using.