This commit is contained in:
Andrea Bianchi
2026-04-06 09:26:07 +09:00
parent bd53e91476
commit 9054d5c511

View File

@@ -25,18 +25,18 @@ const render = (listItems) => {
// Exercise helpers
const peopleToString = (people) => {
return people.map((p) => `${p.name} ${p.last} (${p.age})`);
};
const peopleToListItems = (strings) => strings.map((str) => `<li>${str}</li>`);
const compareByName = (a, b) => a.name.localeCompare(b.name);
const compareByLast = (a, b) => a.last.localeCompare(b.last);
const compareByAge = (a, b) => a.age - b.age;
const sortPeopleBy = /* ... PLACEHOLDER ... */ () => {};
const peopleToString = (people) => {
return 'PLACEHOLDER';
};
const peopleToListItems = (strings) => 'PLACEHOLDER';
// Main
const byname = /* ... PLACEHOLDER ... */ undefined;