Closed Jack-Works closed 4 years ago
Related: https://github.com/tc39/proposal-Number.range/issues/25
{step?}
Number.range(0, 5, 1.5)
6
(from, to]
[from, to)
Related: https://github.com/tc39/proposal-Number.range/issues/25
{step?}
Number.range(0, 5, 1.5)
will emit6
as final value(from, to]
to[from, to)
(the design is[from, to)
currently, so it's a bug if you want to inclusive range please check https://github.com/tc39/proposal-Number.range/issues/26)