From 9054d5c51117dcc18932b86ba02d1b5c1a8b7556 Mon Sep 17 00:00:00 2001 From: Andrea Bianchi Date: Mon, 6 Apr 2026 09:26:07 +0900 Subject: [PATCH] 6.1 --- w6_1_FP/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/w6_1_FP/index.js b/w6_1_FP/index.js index faa68f0..3d64c59 100644 --- a/w6_1_FP/index.js +++ b/w6_1_FP/index.js @@ -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) => `
  • ${str}
  • `); - 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;