Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix return of unshift method
Fix return of unshift method
  • Loading branch information
caiquecastro authored Dec 26, 2022
commit fefb06a6b51a7699cb3986ed2d20dc0d03511055
2 changes: 1 addition & 1 deletion book/content/part02/array.asc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Here's an example:
[source, javascript]
----
const array = [2, 5, 1];
array.unshift(0); // ↪️ 8
array.unshift(0); // ↪️ 4
console.log(array); // [ 0, 2, 5, 1 ]
array.unshift(-2, -1); // ↪️ 6
console.log(array); // [ -2, -1, 0, 2, 5, 1 ]
Expand Down