Visitar URL original
Adding curlies to allow func to run by maxknee · Pull Request #54 · wesbos/JavaScript30 · GitHub
Skip to content
Closed
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
Adding curlies to allow func to run
  • Loading branch information
Max Knee Max Knee
Max Knee authored and Max Knee committed Dec 17, 2016
commit f381d9590e9d8223bd0d9c044d2c7388ee29f521
2 changes: 1 addition & 1 deletion 04 - Array Cardio Day 1/index-FINISHED.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
// }
// });

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

// Array.prototype.reduce()
Expand Down