Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 24, 2023 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/c19bbf4f06ee710a9cb0861c5bf8ba7f to your computer and use it in GitHub Desktop.
Save parzibyte/c19bbf4f06ee710a9cb0861c5bf8ba7f to your computer and use it in GitHub Desktop.
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