formatação

This commit is contained in:
Luiz H. R. Silva 2024-06-01 14:35:15 -03:00
parent e705901982
commit 785588b37e
31 changed files with 178 additions and 167 deletions

View file

@ -1,7 +1,7 @@
const alfabeto = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
const alfabeto = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")
export const aleatorio = (tamanho?: number) =>
Array.from(
{ length: tamanho || 8 },
() => `ale-${alfabeto[Math.floor(Math.random() * 1000) % alfabeto.length]}`,
).join("");
).join("")