Skip to content
Snippets Groups Projects
Commit e91cb793 authored by Eliott Collin's avatar Eliott Collin
Browse files

filter by name contains 2 'i'

parent 91e46bc6
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ const data = [
const html = data.filter(pizza => pizza.price_small < 6).reduce((previous, current) => {
const html = data.filter(pizza => pizza.name.split("").filter(value => value === "i").length === 2).reduce((previous, current) => {
return previous + `<article class="pizzaThumbnail">
<a href="${current.image}">
<img src="${current.image}" alt="${current.name}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment