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

Provide _.rangeStep or similar in lodashfp #2584

Closed
cfredric opened this issue Aug 18, 2016 · 2 comments
Closed

Provide _.rangeStep or similar in lodashfp #2584

cfredric opened this issue Aug 18, 2016 · 2 comments

Comments

@cfredric
Copy link

When migrating from lodash to lodash/fp, one will need to convert any usages of _.range(min, max, step) to some new function, since the _.range exported by lodash/fp has a fixed arity of 2 and therefore will ignore the step parameter. (_.rangeRight also has a fixed arity of 2, so it isn't what we are looking for.) However, no such function is provided by lodash/fp.

It would be nice if lodash/fp would export two new functions, for example _.rangeStep and _.rangeStepRight, that have a fixed arity of 3 and expect the step parameter to be provided.

@jdalton
Copy link
Member

jdalton commented Aug 18, 2016

Thanks!

@lock
Copy link

lock bot commented Jan 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants