Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand support for methods used as iteratees. #1865

Open
jdalton opened this issue Sep 22, 2014 · 3 comments
Open

Expand support for methods used as iteratees. #1865

jdalton opened this issue Sep 22, 2014 · 3 comments

Comments

@jdalton
Copy link
Contributor

jdalton commented Sep 22, 2014

Methods like _.sample, _.first, _.initial, _.last, & _.rest have guards to support being used as an iteratee for methods like _.map. I think it'd be great if this was expanded to other methods that can operate with just 1 param, like _.template, _.sortBy, _.uniq, _.flatten, _.min, _.max, & so on. Support can be added to some by adding a simple guard check while others may require a helper.

@amZotti
Copy link
Contributor

amZotti commented Feb 9, 2015

I'll look into this

@dotpao
Copy link

dotpao commented Nov 20, 2015

Any update here in order to allow _.uniq as _.map iteratee?

@jgonggrijp
Copy link
Collaborator

I suggest adding this only to the functions for which a simple guard is sufficient. That helper looks like a pessimization as well as a potentially serious breaking change.

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

No branches or pull requests

5 participants