closes #797
This commit is contained in:
parent
594cc4a6d6
commit
06d7123df1
1 changed files with 1 additions and 1 deletions
|
@ -18,6 +18,6 @@ let arr = [ john, pete, mary ];
|
||||||
sortByName(arr);
|
sortByName(arr);
|
||||||
|
|
||||||
// now: [john, mary, pete]
|
// now: [john, mary, pete]
|
||||||
alert(arr[0].name); // Mary
|
alert(arr[0].name); // John
|
||||||
alert(arr[2].name); // Pete
|
alert(arr[2].name); // Pete
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue