Source code
Revision control
Copy as Markdown
Other Tools
// |jit-test|
for (let i = 0; i < 1000; ++i) {
let arr = [0];
let result = arr.toSpliced(0, 0, 1, 2, 3);
assertEq(result.length, 4);
}
for (let i = 0; i < 1000; ++i) {
let arr = [0];
let result = arr.toSpliced(1, 0, 1, 2, 3);
assertEq(result.length, 4);
}