Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
bea10cf
primera actualizacion
nicolmendoza Oct 28, 2021
6065e02
prueba de hola
MerlyAnco Oct 28, 2021
4bf2b41
Merge pull request #1 from MerlyAnco/main
nicolmendoza Oct 28, 2021
2a1728f
segunda actualzacion
nicolmendoza Oct 29, 2021
7a05aff
tercera actualzacion
nicolmendoza Oct 29, 2021
0baa05a
prueba2
MerlyAnco Oct 29, 2021
ff36063
Merge pull request #2 from MerlyAnco/main
nicolmendoza Oct 29, 2021
edc1105
cuarta actualzacion
nicolmendoza Oct 30, 2021
02b4ca8
prueba 3
MerlyAnco Oct 30, 2021
09fe50c
Merge branch 'main' of https://github.com/nicolmendoza/LIM016-data-lo…
MerlyAnco Oct 30, 2021
2e520bb
Merge pull request #3 from MerlyAnco/main
nicolmendoza Oct 30, 2021
7f75b3c
actualizacion nicol
nicolmendoza Oct 30, 2021
ed2ea88
actualizacion de nicol
nicolmendoza Oct 30, 2021
0773e3e
prueba 4
MerlyAnco Oct 30, 2021
35e544b
esta es una prueba2
MerlyAnco Oct 30, 2021
8034aed
Merge pull request #4 from MerlyAnco/main
nicolmendoza Oct 30, 2021
5bd3ef2
prueba 4 nicol
nicolmendoza Oct 30, 2021
cf12780
prueba 5 nicol
nicolmendoza Oct 30, 2021
d79a779
pureba 5
MerlyAnco Oct 30, 2021
a0d89cb
prueba 6 merly
MerlyAnco Oct 30, 2021
165e601
prueba6
nicolmendoza Oct 30, 2021
2f374df
merge de js
MerlyAnco Oct 30, 2021
9606c7a
Merge pull request #5 from MerlyAnco/main
nicolmendoza Oct 30, 2021
cac1614
prueba saludo merge js
MerlyAnco Oct 30, 2021
1a11810
prueba 7
nicolmendoza Oct 30, 2021
6dc99bb
Merge branch 'main' into main
nicolmendoza Oct 30, 2021
4d7efdf
Merge pull request #6 from MerlyAnco/main
nicolmendoza Oct 30, 2021
9fc40ac
agregue la barra de buscar y filtro por caminata para eclosion
MerlyAnco Nov 1, 2021
34ab713
Merge pull request #7 from MerlyAnco/main
nicolmendoza Nov 1, 2021
4f0c360
agregé los nombres de las evoluciones
nicolmendoza Nov 1, 2021
878f98c
agregé los nombres de las evoluciones
nicolmendoza Nov 1, 2021
5f6588b
agregarndo grid y css
nicolmendoza Nov 2, 2021
730e830
agrgando imagnes de la evoluciones
nicolmendoza Nov 2, 2021
c2db5e7
agregue boton de mas informacion
MerlyAnco Nov 2, 2021
6c8d398
merge 4
MerlyAnco Nov 2, 2021
f32d5c8
Merge pull request #8 from MerlyAnco/main
nicolmendoza Nov 2, 2021
9365de8
agregue vista de tarjeta
MerlyAnco Nov 3, 2021
b534249
Merge pull request #9 from MerlyAnco/main
nicolmendoza Nov 3, 2021
11f7ef5
agregue boton cerrar tarjeta
MerlyAnco Nov 3, 2021
fde49c7
Merge pull request #10 from MerlyAnco/main
nicolmendoza Nov 3, 2021
6189f63
nicol prueba
nicolmendoza Nov 3, 2021
e499112
Merge branch 'main' of https://github.com/nicolmendoza/LIM016-data-lo…
nicolmendoza Nov 3, 2021
1ccc469
funcionalidad al boton cerrar tarjeta
MerlyAnco Nov 3, 2021
9f5267d
Merge pull request #11 from MerlyAnco/main
nicolmendoza Nov 3, 2021
3524c51
incluyendo las evoluciones en la card
nicolmendoza Nov 3, 2021
fd11c7c
prueba conflicto css
MerlyAnco Nov 3, 2021
b948ee9
incluyendo las evoluciones
nicolmendoza Nov 3, 2021
0e89179
agregue navegador
MerlyAnco Nov 3, 2021
cb3f0ba
Merge pull request #12 from MerlyAnco/main
nicolmendoza Nov 3, 2021
a833d17
termine barra de navegación
MerlyAnco Nov 4, 2021
ac19eb0
Merge pull request #13 from MerlyAnco/main
nicolmendoza Nov 4, 2021
e077e0e
acomodando las cards
nicolmendoza Nov 4, 2021
2afed01
Merge branch 'main' of https://github.com/nicolmendoza/LIM016-data-lo…
nicolmendoza Nov 4, 2021
60a0e42
uniones
nicolmendoza Nov 4, 2021
7f0bd34
exportando e importando las funciones
nicolmendoza Nov 4, 2021
6cc3a6a
agregue fondo transparente negro
MerlyAnco Nov 4, 2021
78fe4a8
merge 4/11
MerlyAnco Nov 4, 2021
5f858a8
Merge pull request #14 from MerlyAnco/main
nicolmendoza Nov 4, 2021
e659a4f
modifique el fondo oscuro
MerlyAnco Nov 4, 2021
1150208
Merge pull request #15 from MerlyAnco/main
nicolmendoza Nov 4, 2021
f74d868
no hice nada
nicolmendoza Nov 4, 2021
3671084
unir
nicolmendoza Nov 4, 2021
31a4332
uniendo el orden alfabetico y numerico
nicolmendoza Nov 5, 2021
06b7b09
termine con el boton de buscar
MerlyAnco Nov 5, 2021
2cb0b63
union 5/11
MerlyAnco Nov 5, 2021
743de0e
Merge pull request #16 from MerlyAnco/main
nicolmendoza Nov 5, 2021
57311c4
agregue barras de poder
MerlyAnco Nov 6, 2021
bc03658
Merge pull request #17 from MerlyAnco/main
nicolmendoza Nov 6, 2021
74b3571
prueba.html
nicolmendoza Nov 6, 2021
2ec1089
agregue num de caramelos para evolucion
MerlyAnco Nov 7, 2021
f6da079
Merge pull request #18 from MerlyAnco/main
nicolmendoza Nov 7, 2021
fdd1c31
agrgando tablas
nicolmendoza Nov 7, 2021
fb139ab
ordenando las tablas y evoluciones
nicolmendoza Nov 7, 2021
79dbddd
avance con la pagina de inicio, boton subir y seleccionar boton de ta…
MerlyAnco Nov 7, 2021
8f7e292
agregue inicio, subir y efecto en botor card
MerlyAnco Nov 7, 2021
a8154b9
union 7/1 agregue inicio, boton subir y boton de tarjeta
MerlyAnco Nov 7, 2021
e6ff84b
union 7/1 agregue inicio, boton subir y boton de tarjeta
MerlyAnco Nov 7, 2021
676f724
union 7/1 agregue inicio, boton subir y boton de tarjeta original
MerlyAnco Nov 7, 2021
bc03ee1
Merge pull request #19 from MerlyAnco/main
nicolmendoza Nov 7, 2021
d89e782
arreglando tablas y evoluciones
nicolmendoza Nov 8, 2021
dc46a7a
creando seccion peliculas
MerlyAnco Nov 8, 2021
c848e75
union 8/11
MerlyAnco Nov 8, 2021
b4780cb
Merge pull request #20 from MerlyAnco/main
nicolmendoza Nov 8, 2021
a3e4b2c
carrusel y arreglo de tipos en la card
nicolmendoza Nov 8, 2021
07e8186
avance con el grid peliculas
MerlyAnco Nov 8, 2021
3d7cbb3
union 9/11
MerlyAnco Nov 9, 2021
a1a6fce
modifique el scroll para q inicie de 0
MerlyAnco Nov 9, 2021
8c2b73e
Merge pull request #21 from MerlyAnco/main
nicolmendoza Nov 9, 2021
e3194ea
subiendo el div prueba de los iconos de tipos de pokemones
nicolmendoza Nov 9, 2021
b86d575
subiendo tipo de pokemon logo en la pag principal
nicolmendoza Nov 10, 2021
4138da2
agregue filtrar por otros tipos
MerlyAnco Nov 10, 2021
89c317a
subiendo canvas
nicolmendoza Nov 11, 2021
07210c1
agregue chart rareza, egg
MerlyAnco Nov 11, 2021
8db719d
agregue vista 4
MerlyAnco Nov 11, 2021
f7a5ef9
Merge pull request #22 from MerlyAnco/main
nicolmendoza Nov 11, 2021
c4e9a59
agregue mitad del test
MerlyAnco Nov 12, 2021
d6954a2
añandiendo el test
nicolmendoza Nov 12, 2021
a1c4082
union de test
MerlyAnco Nov 12, 2021
d824473
union 11/11
MerlyAnco Nov 12, 2021
9cfe939
Merge pull request #23 from MerlyAnco/main
nicolmendoza Nov 12, 2021
68b10a9
test al 100%
nicolmendoza Nov 13, 2021
d538bf1
modifique css y termine menu responsive
MerlyAnco Nov 15, 2021
94eb04c
agrgando fetch
nicolmendoza Nov 15, 2021
cc084cf
modifique los test
MerlyAnco Nov 15, 2021
18e5c9e
union 15/11
MerlyAnco Nov 15, 2021
d7b9e2b
Merge pull request #24 from MerlyAnco/main
nicolmendoza Nov 15, 2021
e18b6e0
sin cambios
nicolmendoza Nov 15, 2021
24af3b5
Merge branch 'main' of https://github.com/nicolmendoza/LIM016-data-lo…
nicolmendoza Nov 15, 2021
5e7ddfb
modifique css
MerlyAnco Nov 16, 2021
e41d1bd
Merge pull request #25 from MerlyAnco/main
nicolmendoza Nov 16, 2021
eb5bee5
modificando el carrusel
nicolmendoza Nov 16, 2021
1706274
fusionando cambios
nicolmendoza Nov 16, 2021
ba9855a
test al 100%
nicolmendoza Nov 16, 2021
780a427
16/11 sin cambios
MerlyAnco Nov 16, 2021
dbfb53f
ergue conflicto en proceso de solucionar
MerlyAnco Nov 16, 2021
c155cd5
recupere el commit 5e7ddfb957ba1bf87b5e5c19fc1befafece45e6d
MerlyAnco Nov 16, 2021
6b6d617
Merge pull request #26 from MerlyAnco/main
nicolmendoza Nov 16, 2021
ac8fbcd
nada
nicolmendoza Nov 16, 2021
b1557be
arreglando conflictos
nicolmendoza Nov 16, 2021
e4d3876
fetch
nicolmendoza Nov 17, 2021
73f4370
agregue select responsive
MerlyAnco Nov 17, 2021
daa9711
union 17/11 select responsive - arreglo del fetch
MerlyAnco Nov 17, 2021
d7ce72c
Merge pull request #27 from MerlyAnco/main
nicolmendoza Nov 17, 2021
30ddecd
añadiendo los cambios de css y fetch
nicolmendoza Nov 17, 2021
ab799f2
añadiendo cambios de css 17/11
nicolmendoza Nov 18, 2021
a4177d2
css
MerlyAnco Nov 18, 2021
a803bf8
agrgando css de el buscador y el carrusel
nicolmendoza Nov 18, 2021
083cff1
avance el responsive chart, botones, etc
MerlyAnco Nov 19, 2021
2f28620
union de css 19/11 chart, etc
MerlyAnco Nov 19, 2021
a685f96
Merge pull request #28 from MerlyAnco/main
nicolmendoza Nov 19, 2021
c58c419
acomodando los media queries de las cards y reseteando los filtros
nicolmendoza Nov 19, 2021
01774a2
acomodando las tablas
nicolmendoza Nov 20, 2021
e151783
reseteando los filtros
nicolmendoza Nov 21, 2021
a811885
mostrar y esconderse menu
MerlyAnco Nov 21, 2021
6469c6c
union 21/11
MerlyAnco Nov 21, 2021
cb6698d
añadiendo el footer 21/11
nicolmendoza Nov 21, 2021
4e594b9
modifique active de botones
MerlyAnco Nov 22, 2021
8e96388
Merge branch 'main' of https://github.com/nicolmendoza/LIM016-data-lo…
MerlyAnco Nov 22, 2021
0b4355b
css carrusel
MerlyAnco Nov 22, 2021
457c34d
añadiendo el ranking
nicolmendoza Nov 23, 2021
8dcf1b4
Update README.md
MerlyAnco Nov 23, 2021
7af0efd
css
MerlyAnco Nov 23, 2021
1d0ec1a
pre-final
MerlyAnco Nov 23, 2021
fadd2d9
Merge branch 'main' of https://github.com/MerlyAnco/LIM016-data-lovers
MerlyAnco Nov 23, 2021
d717738
Merge pull request #30 from MerlyAnco/main
nicolmendoza Nov 23, 2021
891ca34
añadiendo historias de usuario
nicolmendoza Nov 23, 2021
8222010
Añadiendo las historias de Usuario
nicolmendoza Nov 23, 2021
fcc2f76
arreglando css y html
nicolmendoza Nov 23, 2021
d68b0ed
Merge branch 'main' of https://github.com/nicolmendoza/LIM016-data-lo…
nicolmendoza Nov 23, 2021
dfa1aea
Update README.md
MerlyAnco Nov 23, 2021
5a4274c
imagenes de pc
MerlyAnco Nov 23, 2021
a35bdb0
Merge branch 'main' of https://github.com/MerlyAnco/LIM016-data-lovers
MerlyAnco Nov 23, 2021
8433d93
agregue imagenes
MerlyAnco Nov 23, 2021
c0fb22e
Update README.md
MerlyAnco Nov 23, 2021
ce652f1
agregue producto final
MerlyAnco Nov 23, 2021
f6ff1f9
Merge pull request #31 from MerlyAnco/main
nicolmendoza Nov 23, 2021
c976c5c
subiendo prototipos de baja fidelidad
nicolmendoza Nov 23, 2021
216f688
Añadiendo cambios de las historias de usuarios
nicolmendoza Nov 23, 2021
1047ee3
imagenes responsive
MerlyAnco Nov 24, 2021
6279530
responsive imagenes
MerlyAnco Nov 24, 2021
5cd086b
Update README.md
MerlyAnco Nov 24, 2021
0305193
Merge branch 'main' of https://github.com/MerlyAnco/LIM016-data-lovers
MerlyAnco Nov 24, 2021
e3910c2
Merge branch 'main' of https://github.com/nicolmendoza/LIM016-data-lo…
MerlyAnco Nov 24, 2021
07e7b64
Update README.md
MerlyAnco Nov 24, 2021
6f81d40
scroll css
MerlyAnco Nov 24, 2021
aa50135
Update README.md
MerlyAnco Nov 24, 2021
ed78989
Merge pull request #32 from MerlyAnco/main
nicolmendoza Nov 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
720 changes: 206 additions & 514 deletions README.md

Large diffs are not rendered by default.

12,332 changes: 12,332 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"opener": "^1.5.1",
"serve": "^12.0.0"
}
}
}
Binary file added prototipo y final/Desktop - 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/Desktop - 4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/Desktop - 6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/Desktop - 7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/card-1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/card-2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/card-3.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/card-4.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/estadisticas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/filtrar-rareza.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/filtrar-region.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/filtrar-tipo.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/iPhone 8 - 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/iPhone 8 - 3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/iPhone 8 - 4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/inicio1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/pokedex-buscar.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/pokedex.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/ranking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/responsive-buscar.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/responsive-card.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/responsive-cargando.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/responsive-intro.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/responsive-menu.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/responsive-pokedex.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added prototipo y final/responsive-ranking.PNG
Binary file added prototipo y final/responsive-rareza.PNG
Binary file added prototipo y final/responsive-region.PNG
Binary file added prototipo y final/responsive-stats.PNG
Binary file added prototipo y final/responsive-tipos.PNG
21 changes: 21 additions & 0 deletions src/botonSubir.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Boton subir
const buttonUp = document.getElementById("button-up");

buttonUp.addEventListener("click", scrollUp);
function scrollUp() {
let currentScroll = document.documentElement.scrollTop;
if (currentScroll > 0) {
window.requestAnimationFrame(scrollUp);
window.scrollTo(0, currentScroll - currentScroll / 15);
}
}

window.onscroll = () => {
let scroll = document.documentElement.scrollTop;

if (scroll > 600) {
buttonUp.style.transform = "scale(1)";
} else if (scroll < 500) {
buttonUp.style.transform = "scale(0)";
}
};
30 changes: 30 additions & 0 deletions src/carrusel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const carrusel = document.querySelector(".carrusel-items");

let maxScrollLeft = carrusel.scrollWidth - carrusel.clientWidth;
let intervalo = null;
let step = 1;

export const start = () => {
intervalo = setInterval(function () {
carrusel.scrollLeft = carrusel.scrollLeft + step;
if (carrusel.scrollLeft === maxScrollLeft) {
step = step * -1;
} else if (carrusel.scrollLeft === 0) {
step = step * -1;
}
}, 10);
};

const stop = () => {
clearInterval(intervalo);
};

carrusel.addEventListener("mouseover", () => {
stop();
});

carrusel.addEventListener("mouseout", () => {
start();
});

start();
124 changes: 117 additions & 7 deletions src/data.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,119 @@
// estas funciones son de ejemplo
//filtrar pokemon por huevito

export const example = () => {
return 'example';
};
export function huevitoPokemon(eggType, arrayPokemon) {
const arrayEgg = arrayPokemon.filter((item) => item.egg == eggType);
return arrayEgg;
}

//filtro por Cp de pokemon
export function filtarCp(tipoCp, arrayCambiante) {
arrayCambiante.sort((a, b) => {
if (Number(a.stats["max-cp"]) < Number(b.stats["max-cp"])) {
return -1;
}
});
if (tipoCp == "min") {
return arrayCambiante;
} else {
return arrayCambiante.reverse();
}
}
//filtro por rareza de pokemon
export function rarezaPokemon(rarezaP, arrayPokemon) {
let arrayRareza = arrayPokemon.filter(
(array) => array["pokemon-rarity"] == rarezaP
);
return arrayRareza;
}

//orden alfabetico de pokemones
export function ordenAlfaNumerico(typeOrden, arrayCambiante) {
if (typeOrden == "az" || typeOrden == "za") {
arrayCambiante.sort((a, b) => {
if (a.name < b.name)
{return -1}
})
if (typeOrden=="az") {
return arrayCambiante}
else{
return arrayCambiante.reverse();
}
}
else {
arrayCambiante.sort((a, b) => {
if (a.num < b.num) {
return -1;
}
});
if (typeOrden == "1_251") {
return arrayCambiante;
} else {
return arrayCambiante.reverse();
}
}
}

//tipos de pokemones
export function typePokemones(tipoPokemon, arrayPokemon) {
let tipos = arrayPokemon.filter((element) =>
element.type.includes(tipoPokemon)
);
return tipos;
}


//region de pokemones
export function regionFuncion(regionP, arrayPokemon) {
let array = [];
for (let i = 0; i < arrayPokemon.length; i++) {
if (arrayPokemon[i].generation.name == regionP) {
array.push(arrayPokemon[i]);
}
}
return array;
}

//select region pokemon
export function regionSelect(valorSelect, arrayPokemon){
let array = [];
for (let i = 0; i < arrayPokemon.length; i++) {
if (arrayPokemon[i].generation.name == valorSelect) {
array.push(arrayPokemon[i]);
}
}
return array;
}

//select rareza
export function rarezaSelect(rarezaSelect, arrayPokemon) {
let arrayRarezaSelect = arrayPokemon.filter(
(array) => array["pokemon-rarity"] == rarezaSelect
);
return arrayRarezaSelect;
}


//select de tipos
export function tiposSelect(tipo, arrayPokemon) {
let tipoSelect= arrayPokemon.filter(element=>
element.type.includes(tipo)
);
return tipoSelect
}


//buscador de pokemon
export function buscarPoke(texto, arrayPokemon) {
let array = [];
for (let pokemon of arrayPokemon) {
let namePokemon = pokemon.name;
let numPokemon = pokemon.num;
if (namePokemon.indexOf(texto) !== -1) {
array.push(pokemon);
} else if (numPokemon.indexOf(texto) !== -1) {
array.push(pokemon);
}
}
return array;
}

export const anotherExample = () => {
return 'OMG';
};
Loading