You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 thestep
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 thestep
parameter to be provided.The text was updated successfully, but these errors were encountered: