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

nth() throws when it's passed NaN #87

Open
pvarga-dni opened this issue Mar 6, 2020 · 2 comments
Open

nth() throws when it's passed NaN #87

pvarga-dni opened this issue Mar 6, 2020 · 2 comments

Comments

@pvarga-dni
Copy link

pvarga-dni commented Mar 6, 2020

See https://runkit.com/embed/pla9168o8dha

@pvarga-dni pvarga-dni changed the title nth() throws if passed NaN nth() throws when it's passed NaN Mar 6, 2020
@paldepind
Copy link
Member

Thank you for reporting this @pvarga-dni.

What do you think should happen when nth is passed NaN?

@pvarga-dni
Copy link
Author

@paldepind I think the same as when passing a negative index, an index that's too large, a float, Inifinity, etc.. nth() just returns undefined.

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

2 participants