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
配列のmapなどのコールバック関数が受け取るインデックスが1から始まっている #235
Comments
salano-ym
changed the title
配列のmapなどの関数で受け取るインデックスが1から始まっている
配列のmapなどのコールバック関数が受け取るインデックスが1から始まっている
Feb 13, 2023
salano-ym
added a commit
to salano-ym/aiscript
that referenced
this issue
Feb 13, 2023
salano-ym
added a commit
to salano-ym/aiscript
that referenced
this issue
Feb 13, 2023
filter, reduce, find
salano-ym
added a commit
to salano-ym/aiscript
that referenced
this issue
Feb 13, 2023
syuilo
pushed a commit
that referenced
this issue
Mar 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
配列の
map
,filter
,reduce
,find
に渡すコールバック関数の引数でインデックスが受け取れるが、0
ではなく1
から始まっている。バージョン1.12.0で配列のインデックスが
0
始まりに変更されているため、それに合わせた方がいい?既存コードへの影響を考慮して維持するか別の関数にする?
例
The text was updated successfully, but these errors were encountered: