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

what if second_params is greater than first_params.lenth? #14

Open
Gyuyang opened this issue May 24, 2023 · 0 comments
Open

what if second_params is greater than first_params.lenth? #14

Gyuyang opened this issue May 24, 2023 · 0 comments

Comments

@Gyuyang
Copy link

Gyuyang commented May 24, 2023

you took independent action for scene -- n === 1, but another scene like n > arr.length , like arr.length == 1,
and its necessary to use another tool like is_number?
n = isNumber(n) ? +n :1; => n = typeof n == 'number' ? +n : 1;

add
if (n >= len || len == 1){ return arr }

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