Visitar URL original
Adding curlies to allow func to run · wesbos/JavaScript30@f381d95 · GitHub
Skip to content

Commit f381d95

Browse files
Max KneeMax Knee
authored andcommitted
Adding curlies to allow func to run
1 parent 5029405 commit f381d95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎04 - Array Cardio Day 1/index-FINISHED.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
// }
5151
// });
5252

53-
const ordered = inventors.sort((a, b) => a.year > b.year ? 1 : -1);
53+
const ordered = inventors.sort((a, b) => {a.year > b.year ? 1 : -1});
5454
console.table(ordered);
5555

5656
// Array.prototype.reduce()

0 commit comments

Comments
 (0)