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

Misleading annotations for Array.range #91

Open
JoelLefkowitz opened this issue Nov 22, 2023 · 0 comments
Open

Misleading annotations for Array.range #91

JoelLefkowitz opened this issue Nov 22, 2023 · 0 comments

Comments

@JoelLefkowitz
Copy link

In version 3.13.1 the annotations for Array.range say:

/** Returns a new array of numbers from `start` (inclusive) to `finish` (exclusive). */

On https://mobily.github.io/ts-belt/api/array/ the docs say:

Returns a new inclusive array of numbers from start to finish (it returns an empty array when start > finish).

This is confusing since you get an extra element in the array. Can we release a patch with the correct annotations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant