-
-
Save parzibyte/fccff8b1c99fd892fd7197beb3c22849 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tabla += obtenerLineaSeparadora() + "\n"; | |
for (const producto of listaDeProductos) { | |
const lineas = tabularDatos( | |
[ | |
{ contenido: producto.nombre, maximaLongitud: maximaLongitudNombre }, | |
{ contenido: producto.cantidad.toString(), maximaLongitud: maximaLongitudCantidad }, | |
{ contenido: producto.precio.toString(), maximaLongitud: maximaLongitudPrecio }, | |
], | |
relleno, | |
separadorColumnas | |
); | |
for (const linea of lineas) { | |
tabla += linea + "\n"; | |
} | |
tabla += obtenerLineaSeparadora() + "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment