-
-
Save parzibyte/c19bbf4f06ee710a9cb0861c5bf8ba7f 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
const obtenerLineaSeparadora = () => { | |
const lineasSeparador = tabularDatos( | |
[ | |
{ contenido: "-", maximaLongitud: maximaLongitudNombre }, | |
{ contenido: "-", maximaLongitud: maximaLongitudCantidad }, | |
{ contenido: "-", maximaLongitud: maximaLongitudPrecio }, | |
], | |
"-", | |
"+", | |
); | |
let separadorDeLineas = ""; | |
if (lineasSeparador.length > 0) { | |
separadorDeLineas = lineasSeparador[0] | |
} | |
return separadorDeLineas; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment