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
Some example:
_.range(4) or _range(0, 4) or _.range("4") produce [0, 1, 2, 3] - OK
_.range("0", 4) or _range("0", "4") produce ["0", "01", "011", "0111"] I was expected [0, 1, 2, 3]
from the above examples I've conclude that star parameter is not parse as stop parameter
I tested in iceweasel 10.0.4 / Debian 6.5 with Underscore.js 1.3.3
The text was updated successfully, but these errors were encountered:
It shouldn't -- ideally it would throw an error. But, this being a dynamic language, we don't hard police the input arguments to every single function. It's entirely possible to pass a function bad values and get strange results. Just don't do it. ;)
Some example:
_.range(4) or _range(0, 4) or _.range("4") produce [0, 1, 2, 3] - OK
_.range("0", 4) or _range("0", "4") produce ["0", "01", "011", "0111"] I was expected [0, 1, 2, 3]
from the above examples I've conclude that star parameter is not parse as stop parameter
I tested in iceweasel 10.0.4 / Debian 6.5 with Underscore.js 1.3.3
The text was updated successfully, but these errors were encountered: