let clothes = [
{
item: "top",
isClean: true,
},
{
item: "underwear",
isClean: false,
},
{
item: "bottoms",
isClean: false,
},
{
item: "socks",
isClean: true,
},
{
item: "shoes",
isClean: true,
},
]
/* Challenge: Washing dirty clothes
1. Create a variable called washingClothes
2. Filter through the clothes array and select the item that is dirty
3. Use map() method to create a new array which contains "Washing [item]" for each item in the
array
4. Console log the new washingClothes array
*/
/* Example: .map() */