Commit fc350b7
authored
Update array.js to add a new function and a change
1. Update the comment describing the unshift method specifying that it returns length of new array.
2. Add ".reverse()" function which I found useful while working with arrays.1 parent 65b6edd commit fc350b7
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments