Merge pull request #194 from TMatrix/patch-4
Typo - extra letter 'l' before calling function
This commit is contained in:
commit
a9690a6496
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ let mary = { name: "Mary", age: 28 }
|
|||
|
||||
let arr = [ john, pete, mary ];
|
||||
|
||||
lsortByName(arr);
|
||||
sortByName(arr);
|
||||
|
||||
// now: [john, mary, pete]
|
||||
alert(arr[1].name) // Mary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue