Updated splice examples.

Updated splice examples.
pull/312/head
trissiswaifu 3 years ago committed by GitHub
parent 6e22dcb8c2
commit 0be993f990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -521,9 +521,8 @@ Splice: It takes three parameters:Starting position, number of times to be remov
```js
const numbers = [1, 2, 3, 4, 5]
numbers.splice()
console.log(numbers) // -> remove all items
let emptiedNumbersArray = numbers.splice()
console.log(emptiedNumbersArray) // -> remove all items
```
```js

Loading…
Cancel
Save