Skip to content

Commit 1fcb1a2

Browse files
committed
remove unused function
1 parent 1e2a406 commit 1fcb1a2

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎dead-code/exercise-2.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ const pets = ["parrot", "hamster", "horse", "dog", "hamster", "cat", "hamster"];
55
const capitalisedPets = pets.map((pet) => pet.toUpperCase());
66
const petsStartingWithH = pets.filter((pet) => pet[0] === "h");
77

8-
function logPets(petsArr) {
9-
petsArr.forEach((pet) => console.log(pet));
10-
}
11-
128
function countAndCapitalisePets(petsArr) {
139
const petCount = {};
1410

0 commit comments

Comments
 (0)