fix: clarify slice-and-splice (#43170)

This commit is contained in:
Ilenia
2021-08-11 17:00:44 +02:00
committed by GitHub
parent 686acd6dff
commit 5f57667c7d

View File

@ -43,7 +43,7 @@ assert.deepEqual(
);
```
All elements from the first array should be added to the second array in their original order.
All elements from the first array should be added to the second array in their original order. `frankenSplice([1, 2, 3, 4], [], 0)` should return `[1, 2, 3, 4]`.
```js
assert.deepEqual(frankenSplice([1, 2, 3, 4], [], 0), [1, 2, 3, 4]);