Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added imagenes/Prototipo de alta fidelidad.jpg
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 imagenes/Prototipo de baja.jpg
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 imagenes/TESTEO.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 imagenes/frontpage.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 imagenes/pokeball2.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 imagenes/pokemon.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 imagenes/prototipo mobile.jpg
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 imagenes/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13,162 changes: 13,162 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

35 changes: 28 additions & 7 deletions src/data.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
// estas funciones son de ejemplo

export const example = () => {
return 'example';
};

export const anotherExample = () => {
return 'OMG';
};
export function pokemonFilter (data,filterText){
return data.filter ((pokemon)=>{
return pokemon.name.includes(filterText);
});
}



export function pokemonSort (pokemonList, sortValue) {
return pokemonList.sort((a, b) => {
if (sortValue === "A-z") {
return a.name < b.name ? -1 : a.name > b.name ? 1 : 0;
} else if (sortValue === "Z-a") {
return a.name > b.name ? -1 : a.name < b.name ? 1 : 0;
}
});
}
/* Ordenamos por nombre: " sortOrder" es = "A-z"
se utiliza el OPERADOR TERNARIO ? para comparar
---Si a.name es menos de b.name, devolvemos -1,
si a.name es mayor que b.name devolvemos 1,
de lo contrario devolvemos 0


De forma similar "sortOrder" es igual "Z-a", estamos comprando pokemones de manera
inversa.*/
/* a=1 A-z b=-1 z-A 0=0 (es lo mismo)
*/
28 changes: 0 additions & 28 deletions src/data/athletes/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions src/data/athletes/README.pt-BR.md

This file was deleted.

Loading