Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 24, 2023 14:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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