UNPKG

gerador-br

Version:
16 lines (13 loc) 424 B
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 };