We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Method Array.Splice works incorrect.
Array.Splice
Here is JS script example with comments:
let arr = [1, 2, 3, 4, 5]; // array with 5 items arr.splice(1, 0, 6); // from index 1 delete 0 items and add 1 new item - 6
Expects array [1, 6, 2, 3, 4, 5] with 6 items.
[1, 6, 2, 3, 4, 5]
Got array [1, 6, 2, 3, 4] - array with 5 items and without last item (5)
[1, 6, 2, 3, 4]
The text was updated successfully, but these errors were encountered:
Thank you
Sorry, something went wrong.
a048ff7
Thanks for the fix!)
No branches or pull requests
Method
Array.Splice
works incorrect.Step to reproduce
Here is JS script example with comments:
Expected result
Expects array
[1, 6, 2, 3, 4, 5]
with 6 items.Actual result
Got array
[1, 6, 2, 3, 4]
- array with 5 items and without last item (5)The text was updated successfully, but these errors were encountered: