Skip to content

Commit 1033fd3

Browse files
committed
removed unused code function
1 parent b75c04e commit 1033fd3

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

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)