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
However, it doesn't include any verbal explanation or code examples demonstrating expected behavior when given an input with start > end and step = 0.
Accordingly, my initial expectation was that the following 4 invocations of both _.range and _.rangeRight would each result in the following identical outputs:
Apparently, I seem to have proven that the expected output for both _.range and _.rangeRight is [] whenever start > end and step = 0.
It would be nice if this were explained and/or demonstrated in the documentation so that, going forward, individuals like myself wouldn't have to investigate the ambiguity of these two otherwise very useful methods in an otherwise very well-documented library.
Thank you!
The text was updated successfully, but these errors were encountered:
Regarding expected behavior when
step=0
, the documentation shows the following for _.range and _.rangeRight :However, it doesn't include any verbal explanation or code examples demonstrating expected behavior when given an input with
start > end
andstep = 0
.Accordingly, my initial expectation was that the following 4 invocations of both _.range and _.rangeRight would each result in the following identical outputs:
Instead, the actual behavior is the following:
Apparently, I seem to have proven that the expected output for both
_.range
and_.rangeRight
is[]
wheneverstart > end
andstep = 0
.It would be nice if this were explained and/or demonstrated in the documentation so that, going forward, individuals like myself wouldn't have to investigate the ambiguity of these two otherwise very useful methods in an otherwise very well-documented library.
Thank you!
The text was updated successfully, but these errors were encountered: