unshift example fix

pull/28/head
Patrick Njuguna 5 years ago committed by GitHub
parent dd35bb6b1c
commit 327d9b411b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -570,7 +570,7 @@ unshift: Adding array element in the beginning of the array
```js
const numbers = [1, 2, 3, 4, 5]
numbers.unshift(0) // -> remove one item from the beginning
numbers.unshift(0) // -> add one item from the beginning
console.log(numbers) // -> [0,1,2,3,4,5]
```

Loading…
Cancel
Save