gerador-br
Version:
Gerador de Dados Fictícios - Brasil
16 lines (13 loc) • 424 B
JavaScript
import { tiposSanguineo } from '../data/db-general.mjs';
import { getRandom } from '../utils.mjs';
/**
* Gera um tipo sanguíneo aleatório.
* @type {string}
* @returns {string} - Um tipo sanguíneo aleatório.
* @example
* console.log(tipoSanguineo()); // Retorna qualquer tipo sanguíneo, como "A+", "O-", etc.
*/
function tipoSanguineo() {
return getRandom(tiposSanguineo);
}
export { tipoSanguineo };